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