Unit tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88403 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
990e949940
commit
ea29a69553
|
@ -47,4 +47,36 @@ class FinancialTest extends PHPUnit_Framework_TestCase
|
|||
return new testDataFileIterator('rawTestData/Calculation/Financial/ACCRINTM.data');
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider providerAMORDEGRC
|
||||
*/
|
||||
public function testAMORDEGRC()
|
||||
{
|
||||
$args = func_get_args();
|
||||
$expectedResult = array_pop($args);
|
||||
$result = call_user_func_array(array('PHPExcel_Calculation_Financial','AMORDEGRC'),$args);
|
||||
$this->assertEquals($expectedResult, $result, NULL, 1E-12);
|
||||
}
|
||||
|
||||
public function providerAMORDEGRC()
|
||||
{
|
||||
return new testDataFileIterator('rawTestData/Calculation/Financial/AMORDEGRC.data');
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider providerAMORLINC
|
||||
*/
|
||||
public function testAMORLINC()
|
||||
{
|
||||
$args = func_get_args();
|
||||
$expectedResult = array_pop($args);
|
||||
$result = call_user_func_array(array('PHPExcel_Calculation_Financial','AMORLINC'),$args);
|
||||
$this->assertEquals($expectedResult, $result, NULL, 1E-12);
|
||||
}
|
||||
|
||||
public function providerAMORLINC()
|
||||
{
|
||||
return new testDataFileIterator('rawTestData/Calculation/Financial/AMORLINC.data');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue