markTestIncomplete('TODO: This test should be fixed'); $result = MathTrig::MINVERSE(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerMINVERSE() { return require 'data/Calculation/MathTrig/MINVERSE.php'; } /** * @dataProvider providerMMULT * * @param mixed $expectedResult */ public function testMMULT($expectedResult, ...$args) { $this->markTestIncomplete('TODO: This test should be fixed'); $result = MathTrig::MMULT(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerMMULT() { return require 'data/Calculation/MathTrig/MMULT.php'; } /** * @dataProvider providerMULTINOMIAL * * @param mixed $expectedResult */ public function testMULTINOMIAL($expectedResult, ...$args) { $result = MathTrig::MULTINOMIAL(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerMULTINOMIAL() { return require 'data/Calculation/MathTrig/MULTINOMIAL.php'; } /** * @dataProvider providerMROUND * * @param mixed $expectedResult */ public function testMROUND($expectedResult, ...$args) { Calculation::setArrayReturnType(Calculation::RETURN_ARRAY_AS_VALUE); $result = MathTrig::MROUND(...$args); Calculation::setArrayReturnType(Calculation::RETURN_ARRAY_AS_ARRAY); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerMROUND() { return require 'data/Calculation/MathTrig/MROUND.php'; } /** * @dataProvider providerPRODUCT * * @param mixed $expectedResult */ public function testPRODUCT($expectedResult, ...$args) { $result = MathTrig::PRODUCT(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerPRODUCT() { return require 'data/Calculation/MathTrig/PRODUCT.php'; } /** * @dataProvider providerQUOTIENT * * @param mixed $expectedResult */ public function testQUOTIENT($expectedResult, ...$args) { $result = MathTrig::QUOTIENT(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerQUOTIENT() { return require 'data/Calculation/MathTrig/QUOTIENT.php'; } /** * @dataProvider providerROUNDUP * * @param mixed $expectedResult */ public function testROUNDUP($expectedResult, ...$args) { $result = MathTrig::ROUNDUP(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerROUNDUP() { return require 'data/Calculation/MathTrig/ROUNDUP.php'; } /** * @dataProvider providerROUNDDOWN * * @param mixed $expectedResult */ public function testROUNDDOWN($expectedResult, ...$args) { $result = MathTrig::ROUNDDOWN(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerROUNDDOWN() { return require 'data/Calculation/MathTrig/ROUNDDOWN.php'; } /** * @dataProvider providerSERIESSUM * * @param mixed $expectedResult */ public function testSERIESSUM($expectedResult, ...$args) { $result = MathTrig::SERIESSUM(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerSERIESSUM() { return require 'data/Calculation/MathTrig/SERIESSUM.php'; } /** * @dataProvider providerSUMSQ * * @param mixed $expectedResult */ public function testSUMSQ($expectedResult, ...$args) { $result = MathTrig::SUMSQ(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerSUMSQ() { return require 'data/Calculation/MathTrig/SUMSQ.php'; } /** * @dataProvider providerTRUNC * * @param mixed $expectedResult */ public function testTRUNC($expectedResult, ...$args) { $result = MathTrig::TRUNC(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerTRUNC() { return require 'data/Calculation/MathTrig/TRUNC.php'; } /** * @dataProvider providerROMAN * * @param mixed $expectedResult */ public function testROMAN($expectedResult, ...$args) { $result = MathTrig::ROMAN(...$args); self::assertEquals($expectedResult, $result); } public function providerROMAN() { return require 'data/Calculation/MathTrig/ROMAN.php'; } /** * @dataProvider providerSQRTPI * * @param mixed $expectedResult */ public function testSQRTPI($expectedResult, ...$args) { $result = MathTrig::SQRTPI(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerSQRTPI() { return require 'data/Calculation/MathTrig/SQRTPI.php'; } /** * @dataProvider providerSUMIF * * @param mixed $expectedResult */ public function testSUMIF($expectedResult, ...$args) { $result = MathTrig::SUMIF(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerSUMIF() { return require 'data/Calculation/MathTrig/SUMIF.php'; } /** * @dataProvider providerSUBTOTAL * * @param mixed $expectedResult */ public function testSUBTOTAL($expectedResult, ...$args) { $spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); $cellReference = $spreadsheet->getActiveSheet()->getCell('A1'); array_push($args, $cellReference); $result = MathTrig::SUBTOTAL(...$args); self::assertEquals($expectedResult, $result, null, 1E-12); } public function providerSUBTOTAL() { return require 'data/Calculation/MathTrig/SUBTOTAL.php'; } }