mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-05 15:10:04 +00:00
Unit tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88961 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
@@ -79,4 +79,20 @@ class FinancialTest extends PHPUnit_Framework_TestCase
|
||||
return new testDataFileIterator('rawTestData/Calculation/Financial/AMORLINC.data');
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider providerRATE
|
||||
*/
|
||||
public function testRATE()
|
||||
{
|
||||
$args = func_get_args();
|
||||
$expectedResult = array_pop($args);
|
||||
$result = call_user_func_array(array('PHPExcel_Calculation_Financial','RATE'),$args);
|
||||
$this->assertEquals($expectedResult, $result, NULL, 1E-12);
|
||||
}
|
||||
|
||||
public function providerRATE()
|
||||
{
|
||||
return new testDataFileIterator('rawTestData/Calculation/Financial/RATE.data');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user