ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
MathTrigTest Class Reference
+ Inheritance diagram for MathTrigTest:
+ Collaboration diagram for MathTrigTest:

Public Member Functions

 setUp ()
 
 testATAN2 ()
 @dataProvider providerATAN2 More...
 
 providerATAN2 ()
 
 testCEILING ()
 @dataProvider providerCEILING More...
 
 providerCEILING ()
 
 testCOMBIN ()
 @dataProvider providerCOMBIN More...
 
 providerCOMBIN ()
 
 testEVEN ()
 @dataProvider providerEVEN More...
 
 providerEVEN ()
 
 testODD ()
 @dataProvider providerODD More...
 
 providerODD ()
 
 testFACT ()
 @dataProvider providerFACT More...
 
 providerFACT ()
 
 testFACTDOUBLE ()
 @dataProvider providerFACTDOUBLE More...
 
 providerFACTDOUBLE ()
 
 testFLOOR ()
 @dataProvider providerFLOOR More...
 
 providerFLOOR ()
 
 testGCD ()
 @dataProvider providerGCD More...
 
 providerGCD ()
 
 testLCM ()
 @dataProvider providerLCM More...
 
 providerLCM ()
 
 testINT ()
 @dataProvider providerINT More...
 
 providerINT ()
 
 testSIGN ()
 @dataProvider providerSIGN More...
 
 providerSIGN ()
 
 testPOWER ()
 @dataProvider providerPOWER More...
 
 providerPOWER ()
 
 testLOG ()
 @dataProvider providerLOG More...
 
 providerLOG ()
 
 testMOD ()
 @dataProvider providerMOD More...
 
 providerMOD ()
 
 testMDETERM ()
 @dataProvider providerMDETERM More...
 
 providerMDETERM ()
 
 testMINVERSE ()
 @dataProvider providerMINVERSE More...
 
 providerMINVERSE ()
 
 testMMULT ()
 @dataProvider providerMMULT More...
 
 providerMMULT ()
 
 testMULTINOMIAL ()
 @dataProvider providerMULTINOMIAL More...
 
 providerMULTINOMIAL ()
 
 testMROUND ()
 @dataProvider providerMROUND More...
 
 providerMROUND ()
 
 testPRODUCT ()
 @dataProvider providerPRODUCT More...
 
 providerPRODUCT ()
 
 testQUOTIENT ()
 @dataProvider providerQUOTIENT More...
 
 providerQUOTIENT ()
 
 testROUNDUP ()
 @dataProvider providerROUNDUP More...
 
 providerROUNDUP ()
 
 testROUNDDOWN ()
 @dataProvider providerROUNDDOWN More...
 
 providerROUNDDOWN ()
 
 testSERIESSUM ()
 @dataProvider providerSERIESSUM More...
 
 providerSERIESSUM ()
 
 testSUMSQ ()
 @dataProvider providerSUMSQ More...
 
 providerSUMSQ ()
 
 testTRUNC ()
 @dataProvider providerTRUNC More...
 
 providerTRUNC ()
 
 testROMAN ()
 @dataProvider providerROMAN More...
 
 providerROMAN ()
 
 testSQRTPI ()
 @dataProvider providerSQRTPI More...
 
 providerSQRTPI ()
 
 testSUMIF ()
 @dataProvider providerSUMIF More...
 
 providerSUMIF ()
 

Detailed Description

Definition at line 6 of file MathTrigTest.php.

Member Function Documentation

◆ providerATAN2()

MathTrigTest::providerATAN2 ( )

Definition at line 31 of file MathTrigTest.php.

32 {
33 return new testDataFileIterator('rawTestData/Calculation/MathTrig/ATAN2.data');
34 }

◆ providerCEILING()

MathTrigTest::providerCEILING ( )

Definition at line 47 of file MathTrigTest.php.

48 {
49 return new testDataFileIterator('rawTestData/Calculation/MathTrig/CEILING.data');
50 }

◆ providerCOMBIN()

MathTrigTest::providerCOMBIN ( )

Definition at line 63 of file MathTrigTest.php.

64 {
65 return new testDataFileIterator('rawTestData/Calculation/MathTrig/COMBIN.data');
66 }

◆ providerEVEN()

MathTrigTest::providerEVEN ( )

Definition at line 79 of file MathTrigTest.php.

80 {
81 return new testDataFileIterator('rawTestData/Calculation/MathTrig/EVEN.data');
82 }

◆ providerFACT()

MathTrigTest::providerFACT ( )

Definition at line 111 of file MathTrigTest.php.

112 {
113 return new testDataFileIterator('rawTestData/Calculation/MathTrig/FACT.data');
114 }

◆ providerFACTDOUBLE()

MathTrigTest::providerFACTDOUBLE ( )

Definition at line 127 of file MathTrigTest.php.

128 {
129 return new testDataFileIterator('rawTestData/Calculation/MathTrig/FACTDOUBLE.data');
130 }

◆ providerFLOOR()

MathTrigTest::providerFLOOR ( )

Definition at line 143 of file MathTrigTest.php.

144 {
145 return new testDataFileIterator('rawTestData/Calculation/MathTrig/FLOOR.data');
146 }

◆ providerGCD()

MathTrigTest::providerGCD ( )

Definition at line 159 of file MathTrigTest.php.

160 {
161 return new testDataFileIterator('rawTestData/Calculation/MathTrig/GCD.data');
162 }

◆ providerINT()

MathTrigTest::providerINT ( )

Definition at line 191 of file MathTrigTest.php.

192 {
193 return new testDataFileIterator('rawTestData/Calculation/MathTrig/INT.data');
194 }

◆ providerLCM()

MathTrigTest::providerLCM ( )

Definition at line 175 of file MathTrigTest.php.

176 {
177 return new testDataFileIterator('rawTestData/Calculation/MathTrig/LCM.data');
178 }

◆ providerLOG()

MathTrigTest::providerLOG ( )

Definition at line 239 of file MathTrigTest.php.

240 {
241 return new testDataFileIterator('rawTestData/Calculation/MathTrig/LOG.data');
242 }

◆ providerMDETERM()

MathTrigTest::providerMDETERM ( )

Definition at line 271 of file MathTrigTest.php.

272 {
273 return new testDataFileIterator('rawTestData/Calculation/MathTrig/MDETERM.data');
274 }

◆ providerMINVERSE()

MathTrigTest::providerMINVERSE ( )

Definition at line 287 of file MathTrigTest.php.

288 {
289 return new testDataFileIterator('rawTestData/Calculation/MathTrig/MINVERSE.data');
290 }

◆ providerMMULT()

MathTrigTest::providerMMULT ( )

Definition at line 303 of file MathTrigTest.php.

304 {
305 return new testDataFileIterator('rawTestData/Calculation/MathTrig/MMULT.data');
306 }

◆ providerMOD()

MathTrigTest::providerMOD ( )

Definition at line 255 of file MathTrigTest.php.

256 {
257 return new testDataFileIterator('rawTestData/Calculation/MathTrig/MOD.data');
258 }

◆ providerMROUND()

MathTrigTest::providerMROUND ( )

Definition at line 337 of file MathTrigTest.php.

338 {
339 return new testDataFileIterator('rawTestData/Calculation/MathTrig/MROUND.data');
340 }

◆ providerMULTINOMIAL()

MathTrigTest::providerMULTINOMIAL ( )

Definition at line 319 of file MathTrigTest.php.

320 {
321 return new testDataFileIterator('rawTestData/Calculation/MathTrig/MULTINOMIAL.data');
322 }

◆ providerODD()

MathTrigTest::providerODD ( )

Definition at line 95 of file MathTrigTest.php.

96 {
97 return new testDataFileIterator('rawTestData/Calculation/MathTrig/ODD.data');
98 }

◆ providerPOWER()

MathTrigTest::providerPOWER ( )

Definition at line 223 of file MathTrigTest.php.

224 {
225 return new testDataFileIterator('rawTestData/Calculation/MathTrig/POWER.data');
226 }

◆ providerPRODUCT()

MathTrigTest::providerPRODUCT ( )

Definition at line 353 of file MathTrigTest.php.

354 {
355 return new testDataFileIterator('rawTestData/Calculation/MathTrig/PRODUCT.data');
356 }

◆ providerQUOTIENT()

MathTrigTest::providerQUOTIENT ( )

Definition at line 369 of file MathTrigTest.php.

370 {
371 return new testDataFileIterator('rawTestData/Calculation/MathTrig/QUOTIENT.data');
372 }

◆ providerROMAN()

MathTrigTest::providerROMAN ( )

Definition at line 465 of file MathTrigTest.php.

466 {
467 return new testDataFileIterator('rawTestData/Calculation/MathTrig/ROMAN.data');
468 }

◆ providerROUNDDOWN()

MathTrigTest::providerROUNDDOWN ( )

Definition at line 401 of file MathTrigTest.php.

402 {
403 return new testDataFileIterator('rawTestData/Calculation/MathTrig/ROUNDDOWN.data');
404 }

◆ providerROUNDUP()

MathTrigTest::providerROUNDUP ( )

Definition at line 385 of file MathTrigTest.php.

386 {
387 return new testDataFileIterator('rawTestData/Calculation/MathTrig/ROUNDUP.data');
388 }

◆ providerSERIESSUM()

MathTrigTest::providerSERIESSUM ( )

Definition at line 417 of file MathTrigTest.php.

418 {
419 return new testDataFileIterator('rawTestData/Calculation/MathTrig/SERIESSUM.data');
420 }

◆ providerSIGN()

MathTrigTest::providerSIGN ( )

Definition at line 207 of file MathTrigTest.php.

208 {
209 return new testDataFileIterator('rawTestData/Calculation/MathTrig/SIGN.data');
210 }

◆ providerSQRTPI()

MathTrigTest::providerSQRTPI ( )

Definition at line 481 of file MathTrigTest.php.

482 {
483 return new testDataFileIterator('rawTestData/Calculation/MathTrig/SQRTPI.data');
484 }

◆ providerSUMIF()

MathTrigTest::providerSUMIF ( )

Definition at line 497 of file MathTrigTest.php.

498 {
499 return array(
500 array(
501 array(
502 array(1),
503 array(5),
504 array(10),
505 ),
506 '>=5',
507 15,
508 ),
509 array(
510 array(
511 array('text'),
512 array(2),
513 ),
514 '=text',
515 array(
516 array(10),
517 array(100),
518 ),
519 10,
520 ),
521 array(
522 array(
523 array('"text with quotes"'),
524 array(2),
525 ),
526 '="text with quotes"',
527 array(
528 array(10),
529 array(100),
530 ),
531 10,
532 ),
533 array(
534 array(
535 array('"text with quotes"'),
536 array(''),
537 ),
538 '>"', // Compare to the single characater " (double quote)
539 array(
540 array(10),
541 array(100),
542 ),
543 10
544 ),
545 array(
546 array(
547 array(''),
548 array('anything'),
549 ),
550 '>"', // Compare to the single characater " (double quote)
551 array(
552 array(10),
553 array(100),
554 ),
555 100
556 ),
557 );
558 }

◆ providerSUMSQ()

MathTrigTest::providerSUMSQ ( )

Definition at line 433 of file MathTrigTest.php.

434 {
435 return new testDataFileIterator('rawTestData/Calculation/MathTrig/SUMSQ.data');
436 }

◆ providerTRUNC()

MathTrigTest::providerTRUNC ( )

Definition at line 449 of file MathTrigTest.php.

450 {
451 return new testDataFileIterator('rawTestData/Calculation/MathTrig/TRUNC.data');
452 }

◆ setUp()

MathTrigTest::setUp ( )

Definition at line 9 of file MathTrigTest.php.

10 {
11 if (!defined('PHPEXCEL_ROOT'))
12 {
13 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
14 }
15 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
16
18 }
const COMPATIBILITY_EXCEL
constants
Definition: Functions.php:62
static setCompatibilityMode($compatibilityMode)
Definition: Functions.php:116
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

References PHPExcel_Calculation_Functions\COMPATIBILITY_EXCEL, defined, and PHPExcel_Calculation_Functions\setCompatibilityMode().

+ Here is the call graph for this function:

◆ testATAN2()

MathTrigTest::testATAN2 ( )

@dataProvider providerATAN2

Definition at line 23 of file MathTrigTest.php.

24 {
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);
29 }
$result

References $result.

◆ testCEILING()

MathTrigTest::testCEILING ( )

@dataProvider providerCEILING

Definition at line 39 of file MathTrigTest.php.

40 {
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);
45 }

References $result.

◆ testCOMBIN()

MathTrigTest::testCOMBIN ( )

@dataProvider providerCOMBIN

Definition at line 55 of file MathTrigTest.php.

56 {
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);
61 }

References $result.

◆ testEVEN()

MathTrigTest::testEVEN ( )

@dataProvider providerEVEN

Definition at line 71 of file MathTrigTest.php.

72 {
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);
77 }

References $result.

◆ testFACT()

MathTrigTest::testFACT ( )

@dataProvider providerFACT

Definition at line 103 of file MathTrigTest.php.

104 {
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);
109 }

References $result.

◆ testFACTDOUBLE()

MathTrigTest::testFACTDOUBLE ( )

@dataProvider providerFACTDOUBLE

Definition at line 119 of file MathTrigTest.php.

120 {
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);
125 }

References $result.

◆ testFLOOR()

MathTrigTest::testFLOOR ( )

@dataProvider providerFLOOR

Definition at line 135 of file MathTrigTest.php.

136 {
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);
141 }

References $result.

◆ testGCD()

MathTrigTest::testGCD ( )

@dataProvider providerGCD

Definition at line 151 of file MathTrigTest.php.

152 {
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);
157 }

References $result.

◆ testINT()

MathTrigTest::testINT ( )

@dataProvider providerINT

Definition at line 183 of file MathTrigTest.php.

184 {
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);
189 }

References $result.

◆ testLCM()

MathTrigTest::testLCM ( )

@dataProvider providerLCM

Definition at line 167 of file MathTrigTest.php.

168 {
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);
173 }

References $result.

◆ testLOG()

MathTrigTest::testLOG ( )

@dataProvider providerLOG

Definition at line 231 of file MathTrigTest.php.

232 {
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);
237 }

References $result.

◆ testMDETERM()

MathTrigTest::testMDETERM ( )

@dataProvider providerMDETERM

Definition at line 263 of file MathTrigTest.php.

264 {
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);
269 }

References $result.

◆ testMINVERSE()

MathTrigTest::testMINVERSE ( )

@dataProvider providerMINVERSE

Definition at line 279 of file MathTrigTest.php.

280 {
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);
285 }

References $result.

◆ testMMULT()

MathTrigTest::testMMULT ( )

@dataProvider providerMMULT

Definition at line 295 of file MathTrigTest.php.

296 {
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);
301 }

References $result.

◆ testMOD()

MathTrigTest::testMOD ( )

@dataProvider providerMOD

Definition at line 247 of file MathTrigTest.php.

248 {
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);
253 }

References $result.

◆ testMROUND()

MathTrigTest::testMROUND ( )

@dataProvider providerMROUND

Definition at line 327 of file MathTrigTest.php.

328 {
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);
335 }
static setArrayReturnType($returnType)
Set the Array Return Type (Array or Value of first element in the array)

References $result, PHPExcel_Calculation\RETURN_ARRAY_AS_ARRAY, PHPExcel_Calculation\RETURN_ARRAY_AS_VALUE, and PHPExcel_Calculation\setArrayReturnType().

+ Here is the call graph for this function:

◆ testMULTINOMIAL()

MathTrigTest::testMULTINOMIAL ( )

@dataProvider providerMULTINOMIAL

Definition at line 311 of file MathTrigTest.php.

312 {
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);
317 }

References $result.

◆ testODD()

MathTrigTest::testODD ( )

@dataProvider providerODD

Definition at line 87 of file MathTrigTest.php.

88 {
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);
93 }

References $result.

◆ testPOWER()

MathTrigTest::testPOWER ( )

@dataProvider providerPOWER

Definition at line 215 of file MathTrigTest.php.

216 {
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);
221 }

References $result.

◆ testPRODUCT()

MathTrigTest::testPRODUCT ( )

@dataProvider providerPRODUCT

Definition at line 345 of file MathTrigTest.php.

346 {
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);
351 }

References $result.

◆ testQUOTIENT()

MathTrigTest::testQUOTIENT ( )

@dataProvider providerQUOTIENT

Definition at line 361 of file MathTrigTest.php.

362 {
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);
367 }

References $result.

◆ testROMAN()

MathTrigTest::testROMAN ( )

@dataProvider providerROMAN

Definition at line 457 of file MathTrigTest.php.

458 {
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);
463 }

References $result.

◆ testROUNDDOWN()

MathTrigTest::testROUNDDOWN ( )

@dataProvider providerROUNDDOWN

Definition at line 393 of file MathTrigTest.php.

394 {
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);
399 }

References $result.

◆ testROUNDUP()

MathTrigTest::testROUNDUP ( )

@dataProvider providerROUNDUP

Definition at line 377 of file MathTrigTest.php.

378 {
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);
383 }

References $result.

◆ testSERIESSUM()

MathTrigTest::testSERIESSUM ( )

@dataProvider providerSERIESSUM

Definition at line 409 of file MathTrigTest.php.

410 {
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);
415 }

References $result.

◆ testSIGN()

MathTrigTest::testSIGN ( )

@dataProvider providerSIGN

Definition at line 199 of file MathTrigTest.php.

200 {
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);
205 }

References $result.

◆ testSQRTPI()

MathTrigTest::testSQRTPI ( )

@dataProvider providerSQRTPI

Definition at line 473 of file MathTrigTest.php.

474 {
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);
479 }

References $result.

◆ testSUMIF()

MathTrigTest::testSUMIF ( )

@dataProvider providerSUMIF

Definition at line 489 of file MathTrigTest.php.

490 {
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);
495 }

References $result.

◆ testSUMSQ()

MathTrigTest::testSUMSQ ( )

@dataProvider providerSUMSQ

Definition at line 425 of file MathTrigTest.php.

426 {
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);
431 }

References $result.

◆ testTRUNC()

MathTrigTest::testTRUNC ( )

@dataProvider providerTRUNC

Definition at line 441 of file MathTrigTest.php.

442 {
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);
447 }

References $result.


The documentation for this class was generated from the following file: