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