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