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_Financial',
'ACCRINT'),$args);
28 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
41 $args = func_get_args();
42 $expectedResult = array_pop($args);
43 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'ACCRINTM'),$args);
44 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
57 $args = func_get_args();
58 $expectedResult = array_pop($args);
59 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'AMORDEGRC'),$args);
60 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
73 $args = func_get_args();
74 $expectedResult = array_pop($args);
75 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'AMORLINC'),$args);
76 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
89 $args = func_get_args();
90 $expectedResult = array_pop($args);
91 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'COUPDAYBS'),$args);
92 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
105 $args = func_get_args();
106 $expectedResult = array_pop($args);
107 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'COUPDAYS'),$args);
108 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
121 $args = func_get_args();
122 $expectedResult = array_pop($args);
123 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'COUPDAYSNC'),$args);
124 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
137 $args = func_get_args();
138 $expectedResult = array_pop($args);
139 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'COUPNCD'),$args);
140 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
153 $args = func_get_args();
154 $expectedResult = array_pop($args);
155 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'COUPNUM'),$args);
156 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
169 $args = func_get_args();
170 $expectedResult = array_pop($args);
171 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'COUPPCD'),$args);
172 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
185 $args = func_get_args();
186 $expectedResult = array_pop($args);
187 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'CUMIPMT'),$args);
188 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
201 $args = func_get_args();
202 $expectedResult = array_pop($args);
203 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'CUMPRINC'),$args);
204 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
217 $args = func_get_args();
218 $expectedResult = array_pop($args);
219 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'DB'),$args);
220 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
233 $args = func_get_args();
234 $expectedResult = array_pop($args);
235 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'DDB'),$args);
236 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
249 $args = func_get_args();
250 $expectedResult = array_pop($args);
251 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'DISC'),$args);
252 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
265 $args = func_get_args();
266 $expectedResult = array_pop($args);
267 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'DOLLARDE'),$args);
268 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
281 $args = func_get_args();
282 $expectedResult = array_pop($args);
283 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'DOLLARFR'),$args);
284 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
297 $args = func_get_args();
298 $expectedResult = array_pop($args);
299 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'EFFECT'),$args);
300 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
313 $args = func_get_args();
314 $expectedResult = array_pop($args);
315 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'FV'),$args);
316 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
329 $args = func_get_args();
330 $expectedResult = array_pop($args);
331 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'FVSCHEDULE'),$args);
332 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
345 $args = func_get_args();
346 $expectedResult = array_pop($args);
347 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'INTRATE'),$args);
348 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
361 $args = func_get_args();
362 $expectedResult = array_pop($args);
363 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'IPMT'),$args);
364 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
377 $args = func_get_args();
378 $expectedResult = array_pop($args);
379 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'IRR'),$args);
380 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
393 $args = func_get_args();
394 $expectedResult = array_pop($args);
395 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'ISPMT'),$args);
396 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
409 $args = func_get_args();
410 $expectedResult = array_pop($args);
411 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'MIRR'),$args);
412 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
425 $args = func_get_args();
426 $expectedResult = array_pop($args);
427 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'NOMINAL'),$args);
428 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
441 $args = func_get_args();
442 $expectedResult = array_pop($args);
443 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'NPER'),$args);
444 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
457 $args = func_get_args();
458 $expectedResult = array_pop($args);
459 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'NPV'),$args);
460 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
473 $args = func_get_args();
474 $expectedResult = array_pop($args);
475 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'PRICE'),$args);
476 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
489 $args = func_get_args();
490 $expectedResult = array_pop($args);
491 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'RATE'),$args);
492 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
505 $args = func_get_args();
506 $expectedResult = array_pop($args);
507 $result = call_user_func_array(
array(
'PHPExcel_Calculation_Financial',
'XIRR'),$args);
508 $this->assertEquals($expectedResult,
$result, NULL, 1E-8);
testCOUPDAYS()
providerCOUPDAYS
testACCRINT()
providerACCRINT
testDOLLARDE()
providerDOLLARDE
testNOMINAL()
providerNOMINAL
testFVSCHEDULE()
providerFVSCHEDULE
testACCRINTM()
providerACCRINTM
const COMPATIBILITY_EXCEL
constants
testCUMPRINC()
providerCUMPRINC
testCOUPNUM()
providerCOUPNUM
testCOUPDAYSNC()
providerCOUPDAYSNC
testINTRATE()
providerINTRATE
testEFFECT()
providerEFFECT
testCOUPPCD()
providerCOUPPCD
Create styles array
The data for the language used.
testCUMIPMT()
providerCUMIPMT
testDOLLARFR()
providerDOLLARFR
testAMORLINC()
providerAMORLINC
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
testCOUPDAYBS()
providerCOUPDAYBS
testAMORDEGRC()
providerAMORDEGRC
static setCompatibilityMode($compatibilityMode)
testCOUPNCD()
providerCOUPNCD