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