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