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