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