diff --git a/unitTests/PHPExcel/Calculation/MathTrigTest.php b/unitTests/PHPExcel/Calculation/MathTrigTest.php index ee8b1f42..6db6889b 100644 --- a/unitTests/PHPExcel/Calculation/MathTrigTest.php +++ b/unitTests/PHPExcel/Calculation/MathTrigTest.php @@ -287,6 +287,22 @@ class MathTrigTest extends PHPUnit_Framework_TestCase return new testDataFileIterator('rawTestData/Calculation/MathTrig/MINVERSE.data'); } + /** + * @dataProvider providerMMULT + */ + public function testMMULT() + { + $args = func_get_args(); + $expectedResult = array_pop($args); + $result = call_user_func_array(array('PHPExcel_Calculation_MathTrig','MMULT'),$args); + $this->assertEquals($expectedResult, $result, NULL, 1E-12); + } + + public function providerMMULT() + { + return new testDataFileIterator('rawTestData/Calculation/MathTrig/MMULT.data'); + } + /** * @dataProvider providerMROUND */ @@ -337,6 +353,22 @@ class MathTrigTest extends PHPUnit_Framework_TestCase return new testDataFileIterator('rawTestData/Calculation/MathTrig/ROUNDDOWN.data'); } + /** + * @dataProvider providerTRUNC + */ + public function testTRUNC() + { + $args = func_get_args(); + $expectedResult = array_pop($args); + $result = call_user_func_array(array('PHPExcel_Calculation_MathTrig','TRUNC'),$args); + $this->assertEquals($expectedResult, $result, NULL, 1E-12); + } + + public function providerTRUNC() + { + return new testDataFileIterator('rawTestData/Calculation/MathTrig/TRUNC.data'); + } + /** * @dataProvider providerROMAN */