Upgrad PHP deps

This commit is contained in:
Adrien Crivelli 2020-04-27 19:28:36 +09:00
parent a7986520f9
commit f1a019e492
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
232 changed files with 901 additions and 813 deletions

View File

@ -58,12 +58,12 @@
"psr/simple-cache": "^1.0" "psr/simple-cache": "^1.0"
}, },
"require-dev": { "require-dev": {
"dompdf/dompdf": "^0.8.3", "dompdf/dompdf": "^0.8.5",
"friendsofphp/php-cs-fixer": "^2.16", "friendsofphp/php-cs-fixer": "^2.16",
"jpgraph/jpgraph": "^4.0", "jpgraph/jpgraph": "^4.0",
"mpdf/mpdf": "^8.0", "mpdf/mpdf": "^8.0",
"phpcompatibility/php-compatibility": "^9.3", "phpcompatibility/php-compatibility": "^9.3",
"phpunit/phpunit": "^7.5", "phpunit/phpunit": "^8.5",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",
"tecnickcom/tcpdf": "^6.3" "tecnickcom/tcpdf": "^6.3"
}, },

745
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -9,12 +9,12 @@ use PHPUnit\Framework\TestCase;
class CalculationTest extends TestCase class CalculationTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
public function tearDown() protected function tearDown(): void
{ {
$calculation = Calculation::getInstance(); $calculation = Calculation::getInstance();
$calculation->setLocale('en_us'); $calculation->setLocale('en_us');

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class FinancialTest extends TestCase class FinancialTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -21,7 +21,7 @@ class FinancialTest extends TestCase
public function testAMORDEGRC($expectedResult, ...$args) public function testAMORDEGRC($expectedResult, ...$args)
{ {
$result = Financial::AMORDEGRC(...$args); $result = Financial::AMORDEGRC(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerAMORDEGRC() public function providerAMORDEGRC()
@ -37,7 +37,7 @@ class FinancialTest extends TestCase
public function testAMORLINC($expectedResult, ...$args) public function testAMORLINC($expectedResult, ...$args)
{ {
$result = Financial::AMORLINC(...$args); $result = Financial::AMORLINC(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerAMORLINC() public function providerAMORLINC()
@ -53,7 +53,7 @@ class FinancialTest extends TestCase
public function testCOUPDAYBS($expectedResult, ...$args) public function testCOUPDAYBS($expectedResult, ...$args)
{ {
$result = Financial::COUPDAYBS(...$args); $result = Financial::COUPDAYBS(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCOUPDAYBS() public function providerCOUPDAYBS()
@ -69,7 +69,7 @@ class FinancialTest extends TestCase
public function testCOUPDAYS($expectedResult, ...$args) public function testCOUPDAYS($expectedResult, ...$args)
{ {
$result = Financial::COUPDAYS(...$args); $result = Financial::COUPDAYS(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCOUPDAYS() public function providerCOUPDAYS()
@ -85,7 +85,7 @@ class FinancialTest extends TestCase
public function testCOUPDAYSNC($expectedResult, ...$args) public function testCOUPDAYSNC($expectedResult, ...$args)
{ {
$result = Financial::COUPDAYSNC(...$args); $result = Financial::COUPDAYSNC(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCOUPDAYSNC() public function providerCOUPDAYSNC()
@ -101,7 +101,7 @@ class FinancialTest extends TestCase
public function testCOUPNCD($expectedResult, ...$args) public function testCOUPNCD($expectedResult, ...$args)
{ {
$result = Financial::COUPNCD(...$args); $result = Financial::COUPNCD(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCOUPNCD() public function providerCOUPNCD()
@ -117,7 +117,7 @@ class FinancialTest extends TestCase
public function testCOUPNUM($expectedResult, ...$args) public function testCOUPNUM($expectedResult, ...$args)
{ {
$result = Financial::COUPNUM(...$args); $result = Financial::COUPNUM(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCOUPNUM() public function providerCOUPNUM()
@ -133,7 +133,7 @@ class FinancialTest extends TestCase
public function testCOUPPCD($expectedResult, ...$args) public function testCOUPPCD($expectedResult, ...$args)
{ {
$result = Financial::COUPPCD(...$args); $result = Financial::COUPPCD(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCOUPPCD() public function providerCOUPPCD()
@ -149,7 +149,7 @@ class FinancialTest extends TestCase
public function testCUMIPMT($expectedResult, ...$args) public function testCUMIPMT($expectedResult, ...$args)
{ {
$result = Financial::CUMIPMT(...$args); $result = Financial::CUMIPMT(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCUMIPMT() public function providerCUMIPMT()
@ -165,7 +165,7 @@ class FinancialTest extends TestCase
public function testCUMPRINC($expectedResult, ...$args) public function testCUMPRINC($expectedResult, ...$args)
{ {
$result = Financial::CUMPRINC(...$args); $result = Financial::CUMPRINC(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerCUMPRINC() public function providerCUMPRINC()
@ -181,7 +181,7 @@ class FinancialTest extends TestCase
public function testDB($expectedResult, ...$args) public function testDB($expectedResult, ...$args)
{ {
$result = Financial::DB(...$args); $result = Financial::DB(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDB() public function providerDB()
@ -197,7 +197,7 @@ class FinancialTest extends TestCase
public function testDDB($expectedResult, ...$args) public function testDDB($expectedResult, ...$args)
{ {
$result = Financial::DDB(...$args); $result = Financial::DDB(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDDB() public function providerDDB()
@ -213,7 +213,7 @@ class FinancialTest extends TestCase
public function testDISC($expectedResult, ...$args) public function testDISC($expectedResult, ...$args)
{ {
$result = Financial::DISC(...$args); $result = Financial::DISC(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDISC() public function providerDISC()
@ -229,7 +229,7 @@ class FinancialTest extends TestCase
public function testDOLLARDE($expectedResult, ...$args) public function testDOLLARDE($expectedResult, ...$args)
{ {
$result = Financial::DOLLARDE(...$args); $result = Financial::DOLLARDE(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDOLLARDE() public function providerDOLLARDE()
@ -245,7 +245,7 @@ class FinancialTest extends TestCase
public function testDOLLARFR($expectedResult, ...$args) public function testDOLLARFR($expectedResult, ...$args)
{ {
$result = Financial::DOLLARFR(...$args); $result = Financial::DOLLARFR(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDOLLARFR() public function providerDOLLARFR()
@ -261,7 +261,7 @@ class FinancialTest extends TestCase
public function testEFFECT($expectedResult, ...$args) public function testEFFECT($expectedResult, ...$args)
{ {
$result = Financial::EFFECT(...$args); $result = Financial::EFFECT(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerEFFECT() public function providerEFFECT()
@ -277,7 +277,7 @@ class FinancialTest extends TestCase
public function testFV($expectedResult, ...$args) public function testFV($expectedResult, ...$args)
{ {
$result = Financial::FV(...$args); $result = Financial::FV(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerFV() public function providerFV()
@ -293,7 +293,7 @@ class FinancialTest extends TestCase
public function testFVSCHEDULE($expectedResult, ...$args) public function testFVSCHEDULE($expectedResult, ...$args)
{ {
$result = Financial::FVSCHEDULE(...$args); $result = Financial::FVSCHEDULE(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerFVSCHEDULE() public function providerFVSCHEDULE()
@ -309,7 +309,7 @@ class FinancialTest extends TestCase
public function testINTRATE($expectedResult, ...$args) public function testINTRATE($expectedResult, ...$args)
{ {
$result = Financial::INTRATE(...$args); $result = Financial::INTRATE(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerINTRATE() public function providerINTRATE()
@ -325,7 +325,7 @@ class FinancialTest extends TestCase
public function testIPMT($expectedResult, ...$args) public function testIPMT($expectedResult, ...$args)
{ {
$result = Financial::IPMT(...$args); $result = Financial::IPMT(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerIPMT() public function providerIPMT()
@ -341,7 +341,7 @@ class FinancialTest extends TestCase
public function testIRR($expectedResult, ...$args) public function testIRR($expectedResult, ...$args)
{ {
$result = Financial::IRR(...$args); $result = Financial::IRR(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerIRR() public function providerIRR()
@ -357,7 +357,7 @@ class FinancialTest extends TestCase
public function testISPMT($expectedResult, ...$args) public function testISPMT($expectedResult, ...$args)
{ {
$result = Financial::ISPMT(...$args); $result = Financial::ISPMT(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerISPMT() public function providerISPMT()
@ -373,7 +373,7 @@ class FinancialTest extends TestCase
public function testMIRR($expectedResult, ...$args) public function testMIRR($expectedResult, ...$args)
{ {
$result = Financial::MIRR(...$args); $result = Financial::MIRR(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerMIRR() public function providerMIRR()
@ -389,7 +389,7 @@ class FinancialTest extends TestCase
public function testNOMINAL($expectedResult, ...$args) public function testNOMINAL($expectedResult, ...$args)
{ {
$result = Financial::NOMINAL(...$args); $result = Financial::NOMINAL(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerNOMINAL() public function providerNOMINAL()
@ -405,7 +405,7 @@ class FinancialTest extends TestCase
public function testNPER($expectedResult, ...$args) public function testNPER($expectedResult, ...$args)
{ {
$result = Financial::NPER(...$args); $result = Financial::NPER(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerNPER() public function providerNPER()
@ -421,7 +421,7 @@ class FinancialTest extends TestCase
public function testNPV($expectedResult, ...$args) public function testNPV($expectedResult, ...$args)
{ {
$result = Financial::NPV(...$args); $result = Financial::NPV(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerNPV() public function providerNPV()
@ -439,7 +439,7 @@ class FinancialTest extends TestCase
$this->markTestIncomplete('TODO: This test should be fixed'); $this->markTestIncomplete('TODO: This test should be fixed');
$result = Financial::PRICE(...$args); $result = Financial::PRICE(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerPRICE() public function providerPRICE()
@ -455,7 +455,7 @@ class FinancialTest extends TestCase
public function testPRICEDISC($expectedResult, array $args) public function testPRICEDISC($expectedResult, array $args)
{ {
$result = Financial::PRICEDISC(...$args); $result = Financial::PRICEDISC(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerPRICEDISC() public function providerPRICEDISC()
@ -471,7 +471,7 @@ class FinancialTest extends TestCase
public function testPV($expectedResult, array $args) public function testPV($expectedResult, array $args)
{ {
$result = Financial::PV(...$args); $result = Financial::PV(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerPV() public function providerPV()
@ -489,7 +489,7 @@ class FinancialTest extends TestCase
$this->markTestIncomplete('TODO: This test should be fixed'); $this->markTestIncomplete('TODO: This test should be fixed');
$result = Financial::RATE(...$args); $result = Financial::RATE(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerRATE() public function providerRATE()
@ -506,7 +506,7 @@ class FinancialTest extends TestCase
public function testXIRR($expectedResult, $message, ...$args) public function testXIRR($expectedResult, $message, ...$args)
{ {
$result = Financial::XIRR(...$args); $result = Financial::XIRR(...$args);
self::assertEquals($expectedResult, $result, $message, Financial::FINANCIAL_PRECISION); self::assertEqualsWithDelta($expectedResult, $result, Financial::FINANCIAL_PRECISION, $message);
} }
public function providerXIRR() public function providerXIRR()
@ -522,7 +522,7 @@ class FinancialTest extends TestCase
public function testPDURATION($expectedResult, array $args) public function testPDURATION($expectedResult, array $args)
{ {
$result = Financial::PDURATION(...$args); $result = Financial::PDURATION(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerPDURATION() public function providerPDURATION()
@ -538,7 +538,7 @@ class FinancialTest extends TestCase
public function testRRI($expectedResult, array $args) public function testRRI($expectedResult, array $args)
{ {
$result = Financial::RRI(...$args); $result = Financial::RRI(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerRRI() public function providerRRI()
@ -554,7 +554,7 @@ class FinancialTest extends TestCase
public function testSLN($expectedResult, array $args) public function testSLN($expectedResult, array $args)
{ {
$result = Financial::SLN(...$args); $result = Financial::SLN(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerSLN() public function providerSLN()
@ -570,7 +570,7 @@ class FinancialTest extends TestCase
public function testSYD($expectedResult, array $args) public function testSYD($expectedResult, array $args)
{ {
$result = Financial::SYD(...$args); $result = Financial::SYD(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerSYD() public function providerSYD()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class DateDifTest extends TestCase class DateDifTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -27,7 +27,7 @@ class DateDifTest extends TestCase
public function testDATEDIF($expectedResult, $startDate, $endDate, $unit) public function testDATEDIF($expectedResult, $startDate, $endDate, $unit)
{ {
$result = DateTime::DATEDIF($startDate, $endDate, $unit); $result = DateTime::DATEDIF($startDate, $endDate, $unit);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDATEDIF() public function providerDATEDIF()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class DateTest extends TestCase class DateTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -27,7 +27,7 @@ class DateTest extends TestCase
public function testDATE($expectedResult, $year, $month, $day) public function testDATE($expectedResult, $year, $month, $day)
{ {
$result = DateTime::DATE($year, $month, $day); $result = DateTime::DATE($year, $month, $day);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDATE() public function providerDATE()
@ -40,7 +40,8 @@ class DateTest extends TestCase
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP); Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
$result = DateTime::DATE(2012, 1, 31); $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() public function testDATEtoDateTimeObject()

View File

@ -10,7 +10,7 @@ use PHPUnit\Framework\TestCase;
class DateValueTest extends TestCase class DateValueTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -26,7 +26,7 @@ class DateValueTest extends TestCase
public function testDATEVALUE($expectedResult, $dateValue) public function testDATEVALUE($expectedResult, $dateValue)
{ {
$result = DateTime::DATEVALUE($dateValue); $result = DateTime::DATEVALUE($dateValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDATEVALUE() public function providerDATEVALUE()
@ -39,7 +39,8 @@ class DateValueTest extends TestCase
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP); Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
$result = DateTime::DATEVALUE('2012-1-31'); $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() public function testDATEVALUEtoDateTimeObject()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class DayTest extends TestCase class DayTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -26,12 +26,12 @@ class DayTest extends TestCase
public function testDAY($expectedResultExcel, $expectedResultOpenOffice, $dateTimeValue) public function testDAY($expectedResultExcel, $expectedResultOpenOffice, $dateTimeValue)
{ {
$resultExcel = DateTime::DAYOFMONTH($dateTimeValue); $resultExcel = DateTime::DAYOFMONTH($dateTimeValue);
$this->assertEquals($expectedResultExcel, $resultExcel, '', 1E-8); $this->assertEqualsWithDelta($expectedResultExcel, $resultExcel, 1E-8);
Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE);
$resultOpenOffice = DateTime::DAYOFMONTH($dateTimeValue); $resultOpenOffice = DateTime::DAYOFMONTH($dateTimeValue);
$this->assertEquals($expectedResultOpenOffice, $resultOpenOffice, '', 1E-8); $this->assertEqualsWithDelta($expectedResultOpenOffice, $resultOpenOffice, 1E-8);
} }
public function providerDAY() public function providerDAY()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class Days360Test extends TestCase class Days360Test extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -27,7 +27,7 @@ class Days360Test extends TestCase
public function testDAYS360($expectedResult, $startDate, $endDate, $method) public function testDAYS360($expectedResult, $startDate, $endDate, $method)
{ {
$result = DateTime::DAYS360($startDate, $endDate, $method); $result = DateTime::DAYS360($startDate, $endDate, $method);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDAYS360() public function providerDAYS360()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class DaysTest extends TestCase class DaysTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -26,7 +26,7 @@ class DaysTest extends TestCase
public function testDAYS($expectedResult, $endDate, $startDate) public function testDAYS($expectedResult, $endDate, $startDate)
{ {
$result = DateTime::DAYS($endDate, $startDate); $result = DateTime::DAYS($endDate, $startDate);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerDAYS() public function providerDAYS()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class EDateTest extends TestCase class EDateTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -26,7 +26,7 @@ class EDateTest extends TestCase
public function testEDATE($expectedResult, $dateValue, $adjustmentMonths) public function testEDATE($expectedResult, $dateValue, $adjustmentMonths)
{ {
$result = DateTime::EDATE($dateValue, $adjustmentMonths); $result = DateTime::EDATE($dateValue, $adjustmentMonths);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerEDATE() public function providerEDATE()
@ -39,7 +39,8 @@ class EDateTest extends TestCase
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP); Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
$result = DateTime::EDATE('2012-1-26', -1); $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() public function testEDATEtoDateTimeObject()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class EoMonthTest extends TestCase class EoMonthTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -26,7 +26,7 @@ class EoMonthTest extends TestCase
public function testEOMONTH($expectedResult, $dateValue, $adjustmentMonths) public function testEOMONTH($expectedResult, $dateValue, $adjustmentMonths)
{ {
$result = DateTime::EOMONTH($dateValue, $adjustmentMonths); $result = DateTime::EOMONTH($dateValue, $adjustmentMonths);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerEOMONTH() public function providerEOMONTH()
@ -39,7 +39,8 @@ class EoMonthTest extends TestCase
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP); Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
$result = DateTime::EOMONTH('2012-1-26', -1); $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() public function testEOMONTHtoDateTimeObject()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class HourTest extends TestCase class HourTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -25,7 +25,7 @@ class HourTest extends TestCase
public function testHOUR($expectedResult, $dateTimeValue) public function testHOUR($expectedResult, $dateTimeValue)
{ {
$result = DateTime::HOUROFDAY($dateTimeValue); $result = DateTime::HOUROFDAY($dateTimeValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerHOUR() public function providerHOUR()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class IsoWeekNumTest extends TestCase class IsoWeekNumTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -25,7 +25,7 @@ class IsoWeekNumTest extends TestCase
public function testISOWEEKNUM($expectedResult, $dateValue) public function testISOWEEKNUM($expectedResult, $dateValue)
{ {
$result = DateTime::ISOWEEKNUM($dateValue); $result = DateTime::ISOWEEKNUM($dateValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerISOWEEKNUM() public function providerISOWEEKNUM()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class MinuteTest extends TestCase class MinuteTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -25,7 +25,7 @@ class MinuteTest extends TestCase
public function testMINUTE($expectedResult, $dateTimeValue) public function testMINUTE($expectedResult, $dateTimeValue)
{ {
$result = DateTime::MINUTE($dateTimeValue); $result = DateTime::MINUTE($dateTimeValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerMINUTE() public function providerMINUTE()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class MonthTest extends TestCase class MonthTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -25,7 +25,7 @@ class MonthTest extends TestCase
public function testMONTH($expectedResult, $dateTimeValue) public function testMONTH($expectedResult, $dateTimeValue)
{ {
$result = DateTime::MONTHOFYEAR($dateTimeValue); $result = DateTime::MONTHOFYEAR($dateTimeValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerMONTH() public function providerMONTH()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class NetworkDaysTest extends TestCase class NetworkDaysTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -24,7 +24,7 @@ class NetworkDaysTest extends TestCase
public function testNETWORKDAYS($expectedResult, ...$args) public function testNETWORKDAYS($expectedResult, ...$args)
{ {
$result = DateTime::NETWORKDAYS(...$args); $result = DateTime::NETWORKDAYS(...$args);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerNETWORKDAYS() public function providerNETWORKDAYS()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class SecondTest extends TestCase class SecondTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -25,7 +25,7 @@ class SecondTest extends TestCase
public function testSECOND($expectedResult, $dateTimeValue) public function testSECOND($expectedResult, $dateTimeValue)
{ {
$result = DateTime::SECOND($dateTimeValue); $result = DateTime::SECOND($dateTimeValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerSECOND() public function providerSECOND()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class TimeTest extends TestCase class TimeTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -24,7 +24,7 @@ class TimeTest extends TestCase
public function testTIME($expectedResult, ...$args) public function testTIME($expectedResult, ...$args)
{ {
$result = DateTime::TIME(...$args); $result = DateTime::TIME(...$args);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerTIME() public function providerTIME()
@ -37,7 +37,7 @@ class TimeTest extends TestCase
Functions::setReturnDateType(Functions::RETURNDATE_PHP_NUMERIC); Functions::setReturnDateType(Functions::RETURNDATE_PHP_NUMERIC);
$result = DateTime::TIME(7, 30, 20); $result = DateTime::TIME(7, 30, 20);
$this->assertEquals(27020, $result, '', 1E-8); $this->assertEqualsWithDelta(27020, $result, 1E-8);
} }
public function testTIMEtoDateTimeObject() public function testTIMEtoDateTimeObject()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class TimeValueTest extends TestCase class TimeValueTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -25,7 +25,7 @@ class TimeValueTest extends TestCase
public function testTIMEVALUE($expectedResult, $timeValue) public function testTIMEVALUE($expectedResult, $timeValue)
{ {
$result = DateTime::TIMEVALUE($timeValue); $result = DateTime::TIMEVALUE($timeValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerTIMEVALUE() public function providerTIMEVALUE()
@ -38,7 +38,8 @@ class TimeValueTest extends TestCase
Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP); Functions::setReturnDateType(Functions::RETURNDATE_UNIX_TIMESTAMP);
$result = DateTime::TIMEVALUE('7:30:20'); $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() public function testTIMEVALUEtoDateTimeObject()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class WeekDayTest extends TestCase class WeekDayTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -24,7 +24,7 @@ class WeekDayTest extends TestCase
public function testWEEKDAY($expectedResult, ...$args) public function testWEEKDAY($expectedResult, ...$args)
{ {
$result = DateTime::WEEKDAY(...$args); $result = DateTime::WEEKDAY(...$args);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerWEEKDAY() public function providerWEEKDAY()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class WeekNumTest extends TestCase class WeekNumTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -24,7 +24,7 @@ class WeekNumTest extends TestCase
public function testWEEKNUM($expectedResult, ...$args) public function testWEEKNUM($expectedResult, ...$args)
{ {
$result = DateTime::WEEKNUM(...$args); $result = DateTime::WEEKNUM(...$args);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerWEEKNUM() public function providerWEEKNUM()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class WorkDayTest extends TestCase class WorkDayTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -24,7 +24,7 @@ class WorkDayTest extends TestCase
public function testWORKDAY($expectedResult, ...$args) public function testWORKDAY($expectedResult, ...$args)
{ {
$result = DateTime::WORKDAY(...$args); $result = DateTime::WORKDAY(...$args);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerWORKDAY() public function providerWORKDAY()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class YearFracTest extends TestCase class YearFracTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -24,7 +24,7 @@ class YearFracTest extends TestCase
public function testYEARFRAC($expectedResult, ...$args) public function testYEARFRAC($expectedResult, ...$args)
{ {
$result = DateTime::YEARFRAC(...$args); $result = DateTime::YEARFRAC(...$args);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerYEARFRAC() public function providerYEARFRAC()

View File

@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
class YearTest extends TestCase class YearTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
Functions::setReturnDateType(Functions::RETURNDATE_EXCEL); Functions::setReturnDateType(Functions::RETURNDATE_EXCEL);
@ -25,7 +25,7 @@ class YearTest extends TestCase
public function testYEAR($expectedResult, $dateTimeValue) public function testYEAR($expectedResult, $dateTimeValue)
{ {
$result = DateTime::YEAR($dateTimeValue); $result = DateTime::YEAR($dateTimeValue);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerYEAR() public function providerYEAR()

View File

@ -10,7 +10,7 @@ class BesselITest extends TestCase
{ {
const BESSEL_PRECISION = 1E-8; const BESSEL_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -23,7 +23,7 @@ class BesselITest extends TestCase
public function testBESSELI($expectedResult, ...$args) public function testBESSELI($expectedResult, ...$args)
{ {
$result = Engineering::BESSELI(...$args); $result = Engineering::BESSELI(...$args);
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
} }
public function providerBESSELI() public function providerBESSELI()

View File

@ -10,7 +10,7 @@ class BesselJTest extends TestCase
{ {
const BESSEL_PRECISION = 1E-8; const BESSEL_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -23,7 +23,7 @@ class BesselJTest extends TestCase
public function testBESSELJ($expectedResult, ...$args) public function testBESSELJ($expectedResult, ...$args)
{ {
$result = Engineering::BESSELJ(...$args); $result = Engineering::BESSELJ(...$args);
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
} }
public function providerBESSEJ() public function providerBESSEJ()

View File

@ -10,7 +10,7 @@ class BesselKTest extends TestCase
{ {
const BESSEL_PRECISION = 1E-8; const BESSEL_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -23,7 +23,7 @@ class BesselKTest extends TestCase
public function testBESSELK($expectedResult, ...$args) public function testBESSELK($expectedResult, ...$args)
{ {
$result = Engineering::BESSELK(...$args); $result = Engineering::BESSELK(...$args);
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
} }
public function providerBESSELK() public function providerBESSELK()

View File

@ -10,7 +10,7 @@ class BesselYTest extends TestCase
{ {
const BESSEL_PRECISION = 1E-8; const BESSEL_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -23,7 +23,7 @@ class BesselYTest extends TestCase
public function testBESSELY($expectedResult, ...$args) public function testBESSELY($expectedResult, ...$args)
{ {
$result = Engineering::BESSELY(...$args); $result = Engineering::BESSELY(...$args);
$this->assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
} }
public function providerBESSELY() public function providerBESSELY()

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Bin2DecTest extends TestCase class Bin2DecTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Bin2HexTest extends TestCase class Bin2HexTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Bin2OctTest extends TestCase class Bin2OctTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class BitAndTest extends TestCase class BitAndTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class BitLShiftTest extends TestCase class BitLShiftTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class BitOrTest extends TestCase class BitOrTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class BitRShiftTest extends TestCase class BitRShiftTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class BitXorTest extends TestCase class BitXorTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class ComplexTest extends TestCase class ComplexTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class ConvertUoMTest extends TestCase class ConvertUoMTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Dec2BinTest extends TestCase class Dec2BinTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Dec2HexTest extends TestCase class Dec2HexTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Dec2OctTest extends TestCase class Dec2OctTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class DeltaTest extends TestCase class DeltaTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -10,7 +10,7 @@ class ErfCTest extends TestCase
{ {
const ERF_PRECISION = 1E-12; const ERF_PRECISION = 1E-12;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -23,7 +23,8 @@ class ErfCTest extends TestCase
public function testERFC($expectedResult, ...$args) public function testERFC($expectedResult, ...$args)
{ {
$result = Engineering::ERFC(...$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() public function providerERFC()

View File

@ -10,7 +10,7 @@ class ErfPreciseTest extends TestCase
{ {
const ERF_PRECISION = 1E-12; const ERF_PRECISION = 1E-12;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -23,7 +23,8 @@ class ErfPreciseTest extends TestCase
public function testERFPRECISE($expectedResult, ...$args) public function testERFPRECISE($expectedResult, ...$args)
{ {
$result = Engineering::ERFPRECISE(...$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() public function providerERFPRECISE()

View File

@ -10,7 +10,7 @@ class ErfTest extends TestCase
{ {
const ERF_PRECISION = 1E-12; const ERF_PRECISION = 1E-12;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -23,7 +23,8 @@ class ErfTest extends TestCase
public function testERF($expectedResult, ...$args) public function testERF($expectedResult, ...$args)
{ {
$result = Engineering::ERF(...$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() public function providerERF()

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class GeStepTest extends TestCase class GeStepTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Hex2BinTest extends TestCase class Hex2BinTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Hex2DecTest extends TestCase class Hex2DecTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Hex2OctTest extends TestCase class Hex2OctTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -10,7 +10,7 @@ class ImAbsTest extends TestCase
{ {
const COMPLEX_PRECISION = 1E-8; const COMPLEX_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -24,7 +24,7 @@ class ImAbsTest extends TestCase
public function testIMABS($expectedResult, $value) public function testIMABS($expectedResult, $value)
{ {
$result = Engineering::IMABS($value); $result = Engineering::IMABS($value);
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
} }
public function providerIMABS() public function providerIMABS()

View File

@ -10,7 +10,7 @@ class ImArgumentTest extends TestCase
{ {
const COMPLEX_PRECISION = 1E-8; const COMPLEX_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -24,7 +24,7 @@ class ImArgumentTest extends TestCase
public function testIMARGUMENT($expectedResult, $value) public function testIMARGUMENT($expectedResult, $value)
{ {
$result = Engineering::IMARGUMENT($value); $result = Engineering::IMARGUMENT($value);
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
} }
public function providerIMARGUMENT() public function providerIMARGUMENT()

View File

@ -16,13 +16,13 @@ class ImConjugateTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImCosTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImCoshTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImCotTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImCscTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImCschTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImDivTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImExpTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImLnTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImLog10Test extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImLog2Test extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImPowerTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImProductTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -10,7 +10,7 @@ class ImRealTest extends TestCase
{ {
const COMPLEX_PRECISION = 1E-8; const COMPLEX_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -24,7 +24,7 @@ class ImRealTest extends TestCase
public function testIMREAL($expectedResult, $value) public function testIMREAL($expectedResult, $value)
{ {
$result = Engineering::IMREAL($value); $result = Engineering::IMREAL($value);
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
} }
public function providerIMREAL() public function providerIMREAL()

View File

@ -16,13 +16,13 @@ class ImSecTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImSechTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImSinTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImSinhTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImSqrtTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImSubTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImSumTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -16,13 +16,13 @@ class ImTanTest extends TestCase
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
$this->complexAssert = new ComplexAssert(); $this->complexAssert = new ComplexAssert();
} }
public function tearDown() protected function tearDown(): void
{ {
$this->complexAssert = null; $this->complexAssert = null;
} }

View File

@ -10,7 +10,7 @@ class ImaginaryTest extends TestCase
{ {
const COMPLEX_PRECISION = 1E-8; const COMPLEX_PRECISION = 1E-8;
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -24,7 +24,7 @@ class ImaginaryTest extends TestCase
public function testIMAGINARY($expectedResult, $value) public function testIMAGINARY($expectedResult, $value)
{ {
$result = Engineering::IMAGINARY($value); $result = Engineering::IMAGINARY($value);
$this->assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); $this->assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
} }
public function providerIMAGINARY() public function providerIMAGINARY()

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Oct2BinTest extends TestCase class Oct2BinTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Oct2DecTest extends TestCase class Oct2DecTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class Oct2HexTest extends TestCase class Oct2HexTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class ParseComplexTest extends TestCase class ParseComplexTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class AccrintMTest extends TestCase class AccrintMTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -21,7 +21,7 @@ class AccrintMTest extends TestCase
public function testACCRINTM($expectedResult, ...$args) public function testACCRINTM($expectedResult, ...$args)
{ {
$result = Financial::ACCRINTM(...$args); $result = Financial::ACCRINTM(...$args);
self::assertEquals($expectedResult, $result, '', 1E-8); self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerACCRINTM() public function providerACCRINTM()

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class AccrintTest extends TestCase class AccrintTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -21,7 +21,7 @@ class AccrintTest extends TestCase
public function testACCRINT($expectedResult, ...$args) public function testACCRINT($expectedResult, ...$args)
{ {
$result = Financial::ACCRINT(...$args); $result = Financial::ACCRINT(...$args);
$this->assertEquals($expectedResult, $result, '', 1E-8); $this->assertEqualsWithDelta($expectedResult, $result, 1E-8);
} }
public function providerACCRINT() public function providerACCRINT()

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class AndTest extends TestCase class AndTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class FalseTest extends TestCase class FalseTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class IfErrorTest extends TestCase class IfErrorTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class IfNaTest extends TestCase class IfNaTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class IfTest extends TestCase class IfTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class NotTest extends TestCase class NotTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class OrTest extends TestCase class OrTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class SwitchTest extends TestCase class SwitchTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class TrueTest extends TestCase class TrueTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class XorTest extends TestCase class XorTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class ChooseTest extends TestCase class ChooseTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class ColumnsTest extends TestCase class ColumnsTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class HLookupTest extends TestCase class HLookupTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class IndexTest extends TestCase class IndexTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class LookupTest extends TestCase class LookupTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class MatchTest extends TestCase class MatchTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class RowsTest extends TestCase class RowsTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class VLookupTest extends TestCase class VLookupTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -8,7 +8,7 @@ use PHPUnit\Framework\TestCase;
class AcotTest extends TestCase class AcotTest extends TestCase
{ {
public function setUp() protected function setUp(): void
{ {
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }
@ -22,7 +22,7 @@ class AcotTest extends TestCase
public function testACOT($expectedResult, $number) public function testACOT($expectedResult, $number)
{ {
$result = MathTrig::ACOT($number); $result = MathTrig::ACOT($number);
$this->assertEquals($expectedResult, $result, '', 1E-12); $this->assertEqualsWithDelta($expectedResult, $result, 1E-12);
} }
public function providerACOT() public function providerACOT()

Some files were not shown because too many files have changed in this diff Show More