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