Upgrad PHP deps
This commit is contained in:
parent
a7986520f9
commit
f1a019e492
|
@ -58,12 +58,12 @@
|
|||
"psr/simple-cache": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"dompdf/dompdf": "^0.8.3",
|
||||
"dompdf/dompdf": "^0.8.5",
|
||||
"friendsofphp/php-cs-fixer": "^2.16",
|
||||
"jpgraph/jpgraph": "^4.0",
|
||||
"mpdf/mpdf": "^8.0",
|
||||
"phpcompatibility/php-compatibility": "^9.3",
|
||||
"phpunit/phpunit": "^7.5",
|
||||
"phpunit/phpunit": "^8.5",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"tecnickcom/tcpdf": "^6.3"
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,12 +9,12 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class CalculationTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$calculation = Calculation::getInstance();
|
||||
$calculation->setLocale('en_us');
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class FinancialTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class FinancialTest extends TestCase
|
|||
public function testAMORDEGRC($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::AMORDEGRC(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerAMORDEGRC()
|
||||
|
@ -37,7 +37,7 @@ class FinancialTest extends TestCase
|
|||
public function testAMORLINC($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::AMORLINC(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerAMORLINC()
|
||||
|
@ -53,7 +53,7 @@ class FinancialTest extends TestCase
|
|||
public function testCOUPDAYBS($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::COUPDAYBS(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCOUPDAYBS()
|
||||
|
@ -69,7 +69,7 @@ class FinancialTest extends TestCase
|
|||
public function testCOUPDAYS($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::COUPDAYS(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCOUPDAYS()
|
||||
|
@ -85,7 +85,7 @@ class FinancialTest extends TestCase
|
|||
public function testCOUPDAYSNC($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::COUPDAYSNC(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCOUPDAYSNC()
|
||||
|
@ -101,7 +101,7 @@ class FinancialTest extends TestCase
|
|||
public function testCOUPNCD($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::COUPNCD(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCOUPNCD()
|
||||
|
@ -117,7 +117,7 @@ class FinancialTest extends TestCase
|
|||
public function testCOUPNUM($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::COUPNUM(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCOUPNUM()
|
||||
|
@ -133,7 +133,7 @@ class FinancialTest extends TestCase
|
|||
public function testCOUPPCD($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::COUPPCD(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCOUPPCD()
|
||||
|
@ -149,7 +149,7 @@ class FinancialTest extends TestCase
|
|||
public function testCUMIPMT($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::CUMIPMT(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCUMIPMT()
|
||||
|
@ -165,7 +165,7 @@ class FinancialTest extends TestCase
|
|||
public function testCUMPRINC($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::CUMPRINC(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerCUMPRINC()
|
||||
|
@ -181,7 +181,7 @@ class FinancialTest extends TestCase
|
|||
public function testDB($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::DB(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDB()
|
||||
|
@ -197,7 +197,7 @@ class FinancialTest extends TestCase
|
|||
public function testDDB($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::DDB(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDDB()
|
||||
|
@ -213,7 +213,7 @@ class FinancialTest extends TestCase
|
|||
public function testDISC($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::DISC(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDISC()
|
||||
|
@ -229,7 +229,7 @@ class FinancialTest extends TestCase
|
|||
public function testDOLLARDE($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::DOLLARDE(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDOLLARDE()
|
||||
|
@ -245,7 +245,7 @@ class FinancialTest extends TestCase
|
|||
public function testDOLLARFR($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::DOLLARFR(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDOLLARFR()
|
||||
|
@ -261,7 +261,7 @@ class FinancialTest extends TestCase
|
|||
public function testEFFECT($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::EFFECT(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerEFFECT()
|
||||
|
@ -277,7 +277,7 @@ class FinancialTest extends TestCase
|
|||
public function testFV($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::FV(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerFV()
|
||||
|
@ -293,7 +293,7 @@ class FinancialTest extends TestCase
|
|||
public function testFVSCHEDULE($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::FVSCHEDULE(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerFVSCHEDULE()
|
||||
|
@ -309,7 +309,7 @@ class FinancialTest extends TestCase
|
|||
public function testINTRATE($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::INTRATE(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerINTRATE()
|
||||
|
@ -325,7 +325,7 @@ class FinancialTest extends TestCase
|
|||
public function testIPMT($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::IPMT(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerIPMT()
|
||||
|
@ -341,7 +341,7 @@ class FinancialTest extends TestCase
|
|||
public function testIRR($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::IRR(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerIRR()
|
||||
|
@ -357,7 +357,7 @@ class FinancialTest extends TestCase
|
|||
public function testISPMT($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::ISPMT(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerISPMT()
|
||||
|
@ -373,7 +373,7 @@ class FinancialTest extends TestCase
|
|||
public function testMIRR($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::MIRR(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerMIRR()
|
||||
|
@ -389,7 +389,7 @@ class FinancialTest extends TestCase
|
|||
public function testNOMINAL($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::NOMINAL(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerNOMINAL()
|
||||
|
@ -405,7 +405,7 @@ class FinancialTest extends TestCase
|
|||
public function testNPER($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::NPER(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerNPER()
|
||||
|
@ -421,7 +421,7 @@ class FinancialTest extends TestCase
|
|||
public function testNPV($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::NPV(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerNPV()
|
||||
|
@ -439,7 +439,7 @@ class FinancialTest extends TestCase
|
|||
$this->markTestIncomplete('TODO: This test should be fixed');
|
||||
|
||||
$result = Financial::PRICE(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerPRICE()
|
||||
|
@ -455,7 +455,7 @@ class FinancialTest extends TestCase
|
|||
public function testPRICEDISC($expectedResult, array $args)
|
||||
{
|
||||
$result = Financial::PRICEDISC(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerPRICEDISC()
|
||||
|
@ -471,7 +471,7 @@ class FinancialTest extends TestCase
|
|||
public function testPV($expectedResult, array $args)
|
||||
{
|
||||
$result = Financial::PV(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerPV()
|
||||
|
@ -489,7 +489,7 @@ class FinancialTest extends TestCase
|
|||
$this->markTestIncomplete('TODO: This test should be fixed');
|
||||
|
||||
$result = Financial::RATE(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerRATE()
|
||||
|
@ -506,7 +506,7 @@ class FinancialTest extends TestCase
|
|||
public function testXIRR($expectedResult, $message, ...$args)
|
||||
{
|
||||
$result = Financial::XIRR(...$args);
|
||||
self::assertEquals($expectedResult, $result, $message, Financial::FINANCIAL_PRECISION);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, Financial::FINANCIAL_PRECISION, $message);
|
||||
}
|
||||
|
||||
public function providerXIRR()
|
||||
|
@ -522,7 +522,7 @@ class FinancialTest extends TestCase
|
|||
public function testPDURATION($expectedResult, array $args)
|
||||
{
|
||||
$result = Financial::PDURATION(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerPDURATION()
|
||||
|
@ -538,7 +538,7 @@ class FinancialTest extends TestCase
|
|||
public function testRRI($expectedResult, array $args)
|
||||
{
|
||||
$result = Financial::RRI(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerRRI()
|
||||
|
@ -554,7 +554,7 @@ class FinancialTest extends TestCase
|
|||
public function testSLN($expectedResult, array $args)
|
||||
{
|
||||
$result = Financial::SLN(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerSLN()
|
||||
|
@ -570,7 +570,7 @@ class FinancialTest extends TestCase
|
|||
public function testSYD($expectedResult, array $args)
|
||||
{
|
||||
$result = Financial::SYD(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerSYD()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class DateDifTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -27,7 +27,7 @@ class DateDifTest extends TestCase
|
|||
public function testDATEDIF($expectedResult, $startDate, $endDate, $unit)
|
||||
{
|
||||
$result = DateTime::DATEDIF($startDate, $endDate, $unit);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDATEDIF()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class DateTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -27,7 +27,7 @@ class DateTest extends TestCase
|
|||
public function testDATE($expectedResult, $year, $month, $day)
|
||||
{
|
||||
$result = DateTime::DATE($year, $month, $day);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDATE()
|
||||
|
@ -40,7 +40,8 @@ class DateTest extends TestCase
|
|||
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
|
||||
|
||||
$result = DateTime::DATE(2012, 1, 31);
|
||||
$this->assertEquals(1327968000, $result, '', 1E-8);
|
||||
$this->assertEquals(1327968000, $result);
|
||||
$this->assertEqualsWithDelta(1327968000, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function testDATEtoDateTimeObject()
|
||||
|
|
|
@ -10,7 +10,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class DateValueTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -26,7 +26,7 @@ class DateValueTest extends TestCase
|
|||
public function testDATEVALUE($expectedResult, $dateValue)
|
||||
{
|
||||
$result = DateTime::DATEVALUE($dateValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDATEVALUE()
|
||||
|
@ -39,7 +39,8 @@ class DateValueTest extends TestCase
|
|||
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
|
||||
|
||||
$result = DateTime::DATEVALUE('2012-1-31');
|
||||
$this->assertEquals(1327968000, $result, '', 1E-8);
|
||||
$this->assertEquals(1327968000, $result);
|
||||
$this->assertEqualsWithDelta(1327968000, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function testDATEVALUEtoDateTimeObject()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class DayTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -26,12 +26,12 @@ class DayTest extends TestCase
|
|||
public function testDAY($expectedResultExcel, $expectedResultOpenOffice, $dateTimeValue)
|
||||
{
|
||||
$resultExcel = DateTime::DAYOFMONTH($dateTimeValue);
|
||||
$this->assertEquals($expectedResultExcel, $resultExcel, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResultExcel, $resultExcel, 1E-8);
|
||||
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE);
|
||||
|
||||
$resultOpenOffice = DateTime::DAYOFMONTH($dateTimeValue);
|
||||
$this->assertEquals($expectedResultOpenOffice, $resultOpenOffice, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResultOpenOffice, $resultOpenOffice, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDAY()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Days360Test extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -27,7 +27,7 @@ class Days360Test extends TestCase
|
|||
public function testDAYS360($expectedResult, $startDate, $endDate, $method)
|
||||
{
|
||||
$result = DateTime::DAYS360($startDate, $endDate, $method);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDAYS360()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class DaysTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -26,7 +26,7 @@ class DaysTest extends TestCase
|
|||
public function testDAYS($expectedResult, $endDate, $startDate)
|
||||
{
|
||||
$result = DateTime::DAYS($endDate, $startDate);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerDAYS()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class EDateTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -26,7 +26,7 @@ class EDateTest extends TestCase
|
|||
public function testEDATE($expectedResult, $dateValue, $adjustmentMonths)
|
||||
{
|
||||
$result = DateTime::EDATE($dateValue, $adjustmentMonths);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerEDATE()
|
||||
|
@ -39,7 +39,8 @@ class EDateTest extends TestCase
|
|||
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
|
||||
|
||||
$result = DateTime::EDATE('2012-1-26', -1);
|
||||
$this->assertEquals(1324857600, $result, '', 1E-8);
|
||||
$this->assertEquals(1324857600, $result);
|
||||
$this->assertEqualsWithDelta(1324857600, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function testEDATEtoDateTimeObject()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class EoMonthTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -26,7 +26,7 @@ class EoMonthTest extends TestCase
|
|||
public function testEOMONTH($expectedResult, $dateValue, $adjustmentMonths)
|
||||
{
|
||||
$result = DateTime::EOMONTH($dateValue, $adjustmentMonths);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerEOMONTH()
|
||||
|
@ -39,7 +39,8 @@ class EoMonthTest extends TestCase
|
|||
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
|
||||
|
||||
$result = DateTime::EOMONTH('2012-1-26', -1);
|
||||
$this->assertEquals(1325289600, $result, '', 1E-8);
|
||||
$this->assertEquals(1325289600, $result);
|
||||
$this->assertEqualsWithDelta(1325289600, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function testEOMONTHtoDateTimeObject()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class HourTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -25,7 +25,7 @@ class HourTest extends TestCase
|
|||
public function testHOUR($expectedResult, $dateTimeValue)
|
||||
{
|
||||
$result = DateTime::HOUROFDAY($dateTimeValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerHOUR()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class IsoWeekNumTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -25,7 +25,7 @@ class IsoWeekNumTest extends TestCase
|
|||
public function testISOWEEKNUM($expectedResult, $dateValue)
|
||||
{
|
||||
$result = DateTime::ISOWEEKNUM($dateValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerISOWEEKNUM()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class MinuteTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -25,7 +25,7 @@ class MinuteTest extends TestCase
|
|||
public function testMINUTE($expectedResult, $dateTimeValue)
|
||||
{
|
||||
$result = DateTime::MINUTE($dateTimeValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerMINUTE()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class MonthTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -25,7 +25,7 @@ class MonthTest extends TestCase
|
|||
public function testMONTH($expectedResult, $dateTimeValue)
|
||||
{
|
||||
$result = DateTime::MONTHOFYEAR($dateTimeValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerMONTH()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class NetworkDaysTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -24,7 +24,7 @@ class NetworkDaysTest extends TestCase
|
|||
public function testNETWORKDAYS($expectedResult, ...$args)
|
||||
{
|
||||
$result = DateTime::NETWORKDAYS(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerNETWORKDAYS()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class SecondTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -25,7 +25,7 @@ class SecondTest extends TestCase
|
|||
public function testSECOND($expectedResult, $dateTimeValue)
|
||||
{
|
||||
$result = DateTime::SECOND($dateTimeValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerSECOND()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class TimeTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -24,7 +24,7 @@ class TimeTest extends TestCase
|
|||
public function testTIME($expectedResult, ...$args)
|
||||
{
|
||||
$result = DateTime::TIME(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerTIME()
|
||||
|
@ -37,7 +37,7 @@ class TimeTest extends TestCase
|
|||
Functions::setReturnDateType(Functions::RETURNDATE_PHP_NUMERIC);
|
||||
|
||||
$result = DateTime::TIME(7, 30, 20);
|
||||
$this->assertEquals(27020, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta(27020, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function testTIMEtoDateTimeObject()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class TimeValueTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -25,7 +25,7 @@ class TimeValueTest extends TestCase
|
|||
public function testTIMEVALUE($expectedResult, $timeValue)
|
||||
{
|
||||
$result = DateTime::TIMEVALUE($timeValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerTIMEVALUE()
|
||||
|
@ -38,7 +38,8 @@ class TimeValueTest extends TestCase
|
|||
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
|
||||
|
||||
$result = DateTime::TIMEVALUE('7:30:20');
|
||||
$this->assertEquals(23420, $result, '', 1E-8);
|
||||
$this->assertEquals(23420, $result);
|
||||
$this->assertEqualsWithDelta(23420, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function testTIMEVALUEtoDateTimeObject()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class WeekDayTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -24,7 +24,7 @@ class WeekDayTest extends TestCase
|
|||
public function testWEEKDAY($expectedResult, ...$args)
|
||||
{
|
||||
$result = DateTime::WEEKDAY(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerWEEKDAY()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class WeekNumTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -24,7 +24,7 @@ class WeekNumTest extends TestCase
|
|||
public function testWEEKNUM($expectedResult, ...$args)
|
||||
{
|
||||
$result = DateTime::WEEKNUM(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerWEEKNUM()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class WorkDayTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -24,7 +24,7 @@ class WorkDayTest extends TestCase
|
|||
public function testWORKDAY($expectedResult, ...$args)
|
||||
{
|
||||
$result = DateTime::WORKDAY(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerWORKDAY()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class YearFracTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -24,7 +24,7 @@ class YearFracTest extends TestCase
|
|||
public function testYEARFRAC($expectedResult, ...$args)
|
||||
{
|
||||
$result = DateTime::YEARFRAC(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerYEARFRAC()
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class YearTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
|
||||
|
@ -25,7 +25,7 @@ class YearTest extends TestCase
|
|||
public function testYEAR($expectedResult, $dateTimeValue)
|
||||
{
|
||||
$result = DateTime::YEAR($dateTimeValue);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerYEAR()
|
||||
|
|
|
@ -10,7 +10,7 @@ class BesselITest extends TestCase
|
|||
{
|
||||
const BESSEL_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ class BesselITest extends TestCase
|
|||
public function testBESSELI($expectedResult, ...$args)
|
||||
{
|
||||
$result = Engineering::BESSELI(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
public function providerBESSELI()
|
||||
|
|
|
@ -10,7 +10,7 @@ class BesselJTest extends TestCase
|
|||
{
|
||||
const BESSEL_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ class BesselJTest extends TestCase
|
|||
public function testBESSELJ($expectedResult, ...$args)
|
||||
{
|
||||
$result = Engineering::BESSELJ(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
public function providerBESSEJ()
|
||||
|
|
|
@ -10,7 +10,7 @@ class BesselKTest extends TestCase
|
|||
{
|
||||
const BESSEL_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ class BesselKTest extends TestCase
|
|||
public function testBESSELK($expectedResult, ...$args)
|
||||
{
|
||||
$result = Engineering::BESSELK(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
public function providerBESSELK()
|
||||
|
|
|
@ -10,7 +10,7 @@ class BesselYTest extends TestCase
|
|||
{
|
||||
const BESSEL_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ class BesselYTest extends TestCase
|
|||
public function testBESSELY($expectedResult, ...$args)
|
||||
{
|
||||
$result = Engineering::BESSELY(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
public function providerBESSELY()
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Bin2DecTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Bin2HexTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Bin2OctTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class BitAndTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class BitLShiftTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class BitOrTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class BitRShiftTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class BitXorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class ComplexTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class ConvertUoMTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Dec2BinTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Dec2HexTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Dec2OctTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class DeltaTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ class ErfCTest extends TestCase
|
|||
{
|
||||
const ERF_PRECISION = 1E-12;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -23,7 +23,8 @@ class ErfCTest extends TestCase
|
|||
public function testERFC($expectedResult, ...$args)
|
||||
{
|
||||
$result = Engineering::ERFC(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', self::ERF_PRECISION);
|
||||
$this->assertEquals($expectedResult, $result);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
||||
}
|
||||
|
||||
public function providerERFC()
|
||||
|
|
|
@ -10,7 +10,7 @@ class ErfPreciseTest extends TestCase
|
|||
{
|
||||
const ERF_PRECISION = 1E-12;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -23,7 +23,8 @@ class ErfPreciseTest extends TestCase
|
|||
public function testERFPRECISE($expectedResult, ...$args)
|
||||
{
|
||||
$result = Engineering::ERFPRECISE(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', self::ERF_PRECISION);
|
||||
$this->assertEquals($expectedResult, $result);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
||||
}
|
||||
|
||||
public function providerERFPRECISE()
|
||||
|
|
|
@ -10,7 +10,7 @@ class ErfTest extends TestCase
|
|||
{
|
||||
const ERF_PRECISION = 1E-12;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -23,7 +23,8 @@ class ErfTest extends TestCase
|
|||
public function testERF($expectedResult, ...$args)
|
||||
{
|
||||
$result = Engineering::ERF(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', self::ERF_PRECISION);
|
||||
$this->assertEquals($expectedResult, $result);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::ERF_PRECISION);
|
||||
}
|
||||
|
||||
public function providerERF()
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class GeStepTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Hex2BinTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Hex2DecTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Hex2OctTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ class ImAbsTest extends TestCase
|
|||
{
|
||||
const COMPLEX_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class ImAbsTest extends TestCase
|
|||
public function testIMABS($expectedResult, $value)
|
||||
{
|
||||
$result = Engineering::IMABS($value);
|
||||
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||
}
|
||||
|
||||
public function providerIMABS()
|
||||
|
|
|
@ -10,7 +10,7 @@ class ImArgumentTest extends TestCase
|
|||
{
|
||||
const COMPLEX_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class ImArgumentTest extends TestCase
|
|||
public function testIMARGUMENT($expectedResult, $value)
|
||||
{
|
||||
$result = Engineering::IMARGUMENT($value);
|
||||
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||
}
|
||||
|
||||
public function providerIMARGUMENT()
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImConjugateTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImCosTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImCoshTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImCotTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImCscTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImCschTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImDivTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImExpTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImLnTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImLog10Test extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImLog2Test extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImPowerTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImProductTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ class ImRealTest extends TestCase
|
|||
{
|
||||
const COMPLEX_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class ImRealTest extends TestCase
|
|||
public function testIMREAL($expectedResult, $value)
|
||||
{
|
||||
$result = Engineering::IMREAL($value);
|
||||
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||
}
|
||||
|
||||
public function providerIMREAL()
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImSecTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImSechTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImSinTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImSinhTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImSqrtTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImSubTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImSumTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ class ImTanTest extends TestCase
|
|||
*/
|
||||
protected $complexAssert;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
$this->complexAssert = new ComplexAssert();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->complexAssert = null;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ class ImaginaryTest extends TestCase
|
|||
{
|
||||
const COMPLEX_PRECISION = 1E-8;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class ImaginaryTest extends TestCase
|
|||
public function testIMAGINARY($expectedResult, $value)
|
||||
{
|
||||
$result = Engineering::IMAGINARY($value);
|
||||
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
|
||||
}
|
||||
|
||||
public function providerIMAGINARY()
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Oct2BinTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Oct2DecTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class Oct2HexTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class ParseComplexTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class AccrintMTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class AccrintMTest extends TestCase
|
|||
public function testACCRINTM($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::ACCRINTM(...$args);
|
||||
self::assertEquals($expectedResult, $result, '', 1E-8);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerACCRINTM()
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class AccrintTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class AccrintTest extends TestCase
|
|||
public function testACCRINT($expectedResult, ...$args)
|
||||
{
|
||||
$result = Financial::ACCRINT(...$args);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-8);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
||||
}
|
||||
|
||||
public function providerACCRINT()
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class AndTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class FalseTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class IfErrorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class IfNaTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class IfTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class NotTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class OrTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class SwitchTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class TrueTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class XorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class ChooseTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class ColumnsTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class HLookupTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class IndexTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class LookupTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class MatchTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class RowsTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class VLookupTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class AcotTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ class AcotTest extends TestCase
|
|||
public function testACOT($expectedResult, $number)
|
||||
{
|
||||
$result = MathTrig::ACOT($number);
|
||||
$this->assertEquals($expectedResult, $result, '', 1E-12);
|
||||
$this->assertEqualsWithDelta($expectedResult, $result, 1E-12);
|
||||
}
|
||||
|
||||
public function providerACOT()
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue