4 require_once
'testDataFileIterator.php';
13 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
15 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
25 $args = func_get_args();
26 $expectedResult = array_pop($args);
27 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'ATAN2'),$args);
28 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
41 $args = func_get_args();
42 $expectedResult = array_pop($args);
43 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'CEILING'),$args);
44 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
57 $args = func_get_args();
58 $expectedResult = array_pop($args);
59 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'COMBIN'),$args);
60 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
73 $args = func_get_args();
74 $expectedResult = array_pop($args);
75 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'EVEN'),$args);
76 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
89 $args = func_get_args();
90 $expectedResult = array_pop($args);
91 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'ODD'),$args);
92 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
105 $args = func_get_args();
106 $expectedResult = array_pop($args);
107 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'FACT'),$args);
108 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
121 $args = func_get_args();
122 $expectedResult = array_pop($args);
123 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'FACTDOUBLE'),$args);
124 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
137 $args = func_get_args();
138 $expectedResult = array_pop($args);
139 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'FLOOR'),$args);
140 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
153 $args = func_get_args();
154 $expectedResult = array_pop($args);
155 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'GCD'),$args);
156 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
169 $args = func_get_args();
170 $expectedResult = array_pop($args);
171 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'LCM'),$args);
172 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
185 $args = func_get_args();
186 $expectedResult = array_pop($args);
187 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'INT'),$args);
188 $this->assertEquals($expectedResult,
$result);
201 $args = func_get_args();
202 $expectedResult = array_pop($args);
203 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'SIGN'),$args);
204 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
217 $args = func_get_args();
218 $expectedResult = array_pop($args);
219 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'POWER'),$args);
220 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
233 $args = func_get_args();
234 $expectedResult = array_pop($args);
235 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'LOG_BASE'),$args);
236 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
249 $args = func_get_args();
250 $expectedResult = array_pop($args);
251 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'MOD'),$args);
252 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
265 $args = func_get_args();
266 $expectedResult = array_pop($args);
267 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'MDETERM'),$args);
268 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
281 $args = func_get_args();
282 $expectedResult = array_pop($args);
283 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'MINVERSE'),$args);
284 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
297 $args = func_get_args();
298 $expectedResult = array_pop($args);
299 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'MMULT'),$args);
300 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
313 $args = func_get_args();
314 $expectedResult = array_pop($args);
315 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'MULTINOMIAL'),$args);
316 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
329 $args = func_get_args();
330 $expectedResult = array_pop($args);
332 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'MROUND'),$args);
334 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
347 $args = func_get_args();
348 $expectedResult = array_pop($args);
349 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'PRODUCT'),$args);
350 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
363 $args = func_get_args();
364 $expectedResult = array_pop($args);
365 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'QUOTIENT'),$args);
366 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
379 $args = func_get_args();
380 $expectedResult = array_pop($args);
381 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'ROUNDUP'),$args);
382 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
395 $args = func_get_args();
396 $expectedResult = array_pop($args);
397 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'ROUNDDOWN'),$args);
398 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
411 $args = func_get_args();
412 $expectedResult = array_pop($args);
413 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'SERIESSUM'),$args);
414 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
427 $args = func_get_args();
428 $expectedResult = array_pop($args);
429 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'SUMSQ'),$args);
430 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
443 $args = func_get_args();
444 $expectedResult = array_pop($args);
445 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'TRUNC'),$args);
446 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
459 $args = func_get_args();
460 $expectedResult = array_pop($args);
461 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'ROMAN'),$args);
462 $this->assertEquals($expectedResult,
$result);
475 $args = func_get_args();
476 $expectedResult = array_pop($args);
477 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'SQRTPI'),$args);
478 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
491 $args = func_get_args();
492 $expectedResult = array_pop($args);
493 $result = call_user_func_array(
array(
'PHPExcel_Calculation_MathTrig',
'SUMIF'), $args);
494 $this->assertEquals($expectedResult,
$result, NULL, 1E-12);
523 array(
'"text with quotes"'),
526 '="text with quotes"',
535 array(
'"text with quotes"'),
testROUNDUP()
providerROUNDUP
testMULTINOMIAL()
providerMULTINOMIAL
const COMPATIBILITY_EXCEL
constants
static setArrayReturnType($returnType)
Set the Array Return Type (Array or Value of first element in the array)
testCEILING()
providerCEILING
testROUNDDOWN()
providerROUNDDOWN
testQUOTIENT()
providerQUOTIENT
testMROUND()
providerMROUND
const RETURN_ARRAY_AS_ARRAY
testMDETERM()
providerMDETERM
Create styles array
The data for the language used.
const RETURN_ARRAY_AS_VALUE
testCOMBIN()
providerCOMBIN
testSERIESSUM()
providerSERIESSUM
testPRODUCT()
providerPRODUCT
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
testFACTDOUBLE()
providerFACTDOUBLE
static setCompatibilityMode($compatibilityMode)
testSQRTPI()
providerSQRTPI
testMINVERSE()
providerMINVERSE