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