complexAssert = new ComplexAssert(); } public function tearDown() { $this->complexAssert = null; } /** * @dataProvider providerIMPOWER * * @param mixed $expectedResult */ public function testIMPOWER($expectedResult, ...$args) { $result = Engineering::IMPOWER(...$args); $this->assertTrue( $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), $this->complexAssert->getErrorMessage() ); } public function providerIMPOWER() { return require 'data/Calculation/Engineering/IMPOWER.php'; } }