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