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