4 require_once
'testDataFileIterator.php';
11 if (!
defined(
'PHPEXCEL_ROOT')) {
12 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
14 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
19 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getIsMbstringEnabled'));
25 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getIsIconvEnabled'));
31 $localeconv = localeconv();
33 $expectedResult = (!empty($localeconv[
'decimal_point'])) ? $localeconv[
'decimal_point'] :
',';
34 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getDecimalSeparator'));
35 $this->assertEquals($expectedResult,
$result);
40 $expectedResult =
',';
41 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'setDecimalSeparator'),$expectedResult);
43 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getDecimalSeparator'));
44 $this->assertEquals($expectedResult,
$result);
49 $localeconv = localeconv();
51 $expectedResult = (!empty($localeconv[
'thousands_sep'])) ? $localeconv[
'thousands_sep'] :
',';
52 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getThousandsSeparator'));
53 $this->assertEquals($expectedResult,
$result);
58 $expectedResult =
' ';
59 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'setThousandsSeparator'),$expectedResult);
61 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getThousandsSeparator'));
62 $this->assertEquals($expectedResult,
$result);
67 $localeconv = localeconv();
69 $expectedResult = (!empty($localeconv[
'currency_symbol'])) ? $localeconv[
'currency_symbol'] :
'$';
70 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getCurrencyCode'));
71 $this->assertEquals($expectedResult,
$result);
76 $expectedResult =
'£';
77 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'setCurrencyCode'),$expectedResult);
79 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getCurrencyCode'));
80 $this->assertEquals($expectedResult,
$result);
testGetDecimalSeparator()
testSetThousandsSeparator()
testSetDecimalSeparator()
Create styles array
The data for the language used.
testGetIsMbStringEnabled()
testGetThousandsSeparator()
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'