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