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