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