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