mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-30 01:06:03 +03:00
Unit Test scripts
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85795 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
3bbce88324
commit
b9c88ffae4
@ -223,4 +223,36 @@ class MathTrigTest extends PHPUnit_Framework_TestCase
|
|||||||
return new testDataFileIterator('rawTestData/Calculation/MathTrig/POWER.data');
|
return new testDataFileIterator('rawTestData/Calculation/MathTrig/POWER.data');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dataProvider providerLOG
|
||||||
|
*/
|
||||||
|
public function testLOG()
|
||||||
|
{
|
||||||
|
$args = func_get_args();
|
||||||
|
$expectedResult = array_pop($args);
|
||||||
|
$result = call_user_func_array(array('PHPExcel_Calculation_MathTrig','LOG_BASE'),$args);
|
||||||
|
$this->assertEquals($expectedResult, $result, NULL, 1E-12);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function providerLOG()
|
||||||
|
{
|
||||||
|
return new testDataFileIterator('rawTestData/Calculation/MathTrig/LOG.data');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dataProvider providerSQRTPI
|
||||||
|
*/
|
||||||
|
public function testSQRTPI()
|
||||||
|
{
|
||||||
|
$args = func_get_args();
|
||||||
|
$expectedResult = array_pop($args);
|
||||||
|
$result = call_user_func_array(array('PHPExcel_Calculation_MathTrig','SQRTPI'),$args);
|
||||||
|
$this->assertEquals($expectedResult, $result, NULL, 1E-12);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function providerSQRTPI()
|
||||||
|
{
|
||||||
|
return new testDataFileIterator('rawTestData/Calculation/MathTrig/SQRTPI.data');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user