You are here

public function TextDataTest::testVALUE in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/TextDataTest.php \TextDataTest::testVALUE()

@dataProvider providerVALUE

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/TextDataTest.php, line 348

Class

TextDataTest

Code

public function testVALUE() {
  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',
    'VALUE',
  ), $args);
  $this
    ->assertEquals($expectedResult, $result, NULL, 1.0E-8);
}