From 86b256dbdfd16e79fe98222239dcc9ef612716a1 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Wed, 8 Feb 2012 21:41:16 +0000 Subject: [PATCH] Unit Test scripts git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@86201 2327b42d-5241-43d6-9e2a-de5ac946f064 --- .../PHPExcel/Calculation/MathTrigTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/unitTests/PHPExcel/Calculation/MathTrigTest.php b/unitTests/PHPExcel/Calculation/MathTrigTest.php index ee8b1f4..6db6889 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 */