public function TextDataTest::testTEXT in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/TextDataTest.php \TextDataTest::testTEXT()
@dataProvider providerTEXT
File
- vendor/
phpoffice/ phpexcel/ unitTests/ Classes/ PHPExcel/ Calculation/ TextDataTest.php, line 327
Class
Code
public function testTEXT() {
// Enforce decimal and thousands separator values to UK/US, and currency code to USD
call_user_func(array(
'PHPExcel_Shared_String',
'setDecimalSeparator',
), '.');
call_user_func(array(
'PHPExcel_Shared_String',
'setThousandsSeparator',
), ',');
call_user_func(array(
'PHPExcel_Shared_String',
'setCurrencyCode',
), '$');
$args = func_get_args();
$expectedResult = array_pop($args);
$result = call_user_func_array(array(
'PHPExcel_Calculation_TextData',
'TEXTFORMAT',
), $args);
$this
->assertEquals($expectedResult, $result);
}