mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-24 17:18:14 +00:00
a34695e0f9
* Additional unit tests and rationalisation for Financial Functions * Providing a series of sample files for Financial functions * Refactor the last of the existing Financial functions * Some more unit tests with default assignments from null arguments Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
52 lines
746 B
PHP
52 lines
746 B
PHP
<?php
|
|
|
|
// settlement, maturity, price, redemption, basis, result
|
|
|
|
return [
|
|
[
|
|
0.052420213,
|
|
'2007-01-25',
|
|
'2007-06-15',
|
|
97.974999999999994,
|
|
100,
|
|
1,
|
|
],
|
|
[
|
|
0.01,
|
|
'2010-04-01',
|
|
'2015-03-31',
|
|
95,
|
|
100,
|
|
],
|
|
[
|
|
0.01,
|
|
'2010-04-01',
|
|
'2015-03-31',
|
|
95,
|
|
100,
|
|
null,
|
|
],
|
|
[
|
|
'#NUM!',
|
|
'2010-04-01',
|
|
'2015-03-31',
|
|
0,
|
|
100,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'2010-04-01',
|
|
'2015-03-31',
|
|
'ABC',
|
|
100,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'Invalid Date',
|
|
'2007-06-15',
|
|
97.974999999999994,
|
|
100,
|
|
1,
|
|
],
|
|
];
|