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