diff --git a/src/PhpSpreadsheet/Worksheet/ColumnIterator.php b/src/PhpSpreadsheet/Worksheet/ColumnIterator.php index a6e49fd5..e1e41f60 100644 --- a/src/PhpSpreadsheet/Worksheet/ColumnIterator.php +++ b/src/PhpSpreadsheet/Worksheet/ColumnIterator.php @@ -1,6 +1,7 @@ assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMCONJUGATE() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMCONJUGATE.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMCONJUGATE.data'); } /** @@ -184,13 +186,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMCOS'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMCOS() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMCOS.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMCOS.data'); } /** @@ -201,13 +203,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMDIV'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMDIV() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMDIV.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMDIV.data'); } /** @@ -218,13 +220,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMEXP'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMEXP() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMEXP.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMEXP.data'); } /** @@ -235,13 +237,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMLN'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMLN() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMLN.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMLN.data'); } /** @@ -252,13 +254,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMLOG2'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMLOG2() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMLOG2.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMLOG2.data'); } /** @@ -269,13 +271,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMLOG10'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMLOG10() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMLOG10.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMLOG10.data'); } /** @@ -286,13 +288,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMPOWER'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMPOWER() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMPOWER.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMPOWER.data'); } /** @@ -303,13 +305,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMPRODUCT'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMPRODUCT() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMPRODUCT.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMPRODUCT.data'); } /** @@ -320,13 +322,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMSIN'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMSIN() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMSIN.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMSIN.data'); } /** @@ -337,13 +339,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMSQRT'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMSQRT() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMSQRT.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMSQRT.data'); } /** @@ -354,13 +356,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMSUB'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMSUB() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMSUB.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMSUB.data'); } /** @@ -371,13 +373,13 @@ class EngineeringTest extends PHPUnit_Framework_TestCase $args = func_get_args(); $expectedResult = array_pop($args); $result = call_user_func_array(array('\PHPExcel\Calculation\Engineering','IMSUM'), $args); - $complexAssert = new complexAssert(); + $complexAssert = new \complexAssert(); $this->assertTrue($complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $complexAssert->getErrorMessage()); } public function providerIMSUM() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/IMSUM.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/IMSUM.data'); } /** @@ -393,7 +395,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerERF() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/ERF.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/ERF.data'); } /** @@ -409,7 +411,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerERFC() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/ERFC.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/ERFC.data'); } /** @@ -425,7 +427,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerBIN2DEC() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/BIN2DEC.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/BIN2DEC.data'); } /** @@ -441,7 +443,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerBIN2HEX() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/BIN2HEX.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/BIN2HEX.data'); } /** @@ -457,7 +459,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerBIN2OCT() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/BIN2OCT.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/BIN2OCT.data'); } /** @@ -473,7 +475,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerDEC2BIN() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/DEC2BIN.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/DEC2BIN.data'); } /** @@ -489,7 +491,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerDEC2HEX() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/DEC2HEX.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/DEC2HEX.data'); } /** @@ -505,7 +507,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerDEC2OCT() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/DEC2OCT.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/DEC2OCT.data'); } /** @@ -521,7 +523,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerHEX2BIN() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/HEX2BIN.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/HEX2BIN.data'); } /** @@ -537,7 +539,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerHEX2DEC() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/HEX2DEC.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/HEX2DEC.data'); } /** @@ -553,7 +555,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerHEX2OCT() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/HEX2OCT.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/HEX2OCT.data'); } /** @@ -569,7 +571,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerOCT2BIN() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/OCT2BIN.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/OCT2BIN.data'); } /** @@ -585,7 +587,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerOCT2DEC() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/OCT2DEC.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/OCT2DEC.data'); } /** @@ -601,7 +603,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerOCT2HEX() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/OCT2HEX.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/OCT2HEX.data'); } /** @@ -617,7 +619,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerDELTA() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/DELTA.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/DELTA.data'); } /** @@ -633,7 +635,7 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerGESTEP() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/GESTEP.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/GESTEP.data'); } public function testGetConversionGroups() @@ -673,6 +675,6 @@ class EngineeringTest extends PHPUnit_Framework_TestCase public function providerCONVERTUOM() { - return new testDataFileIterator('rawTestData/Calculation/Engineering/CONVERTUOM.data'); + return new \testDataFileIterator('rawTestData/Calculation/Engineering/CONVERTUOM.data'); } } diff --git a/unitTests/Classes/src/Calculation/FinancialTest.php b/unitTests/Classes/src/Calculation/FinancialTest.php index fd6a1b11..4e6b02d7 100644 --- a/unitTests/Classes/src/Calculation/FinancialTest.php +++ b/unitTests/Classes/src/Calculation/FinancialTest.php @@ -1,9 +1,10 @@