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