Definition at line 6 of file StringTest.php.
◆ setUp()
Definition at line 9 of file StringTest.php.
References defined.
11 if (!
defined(
'PHPEXCEL_ROOT')) {
12 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
14 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ testGetCurrencyCode()
StringTest::testGetCurrencyCode |
( |
| ) |
|
Definition at line 65 of file StringTest.php.
References $result, and array.
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);
Create styles array
The data for the language used.
◆ testGetDecimalSeparator()
StringTest::testGetDecimalSeparator |
( |
| ) |
|
Definition at line 29 of file StringTest.php.
References $result, and array.
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);
Create styles array
The data for the language used.
◆ testGetIsIconvEnabled()
StringTest::testGetIsIconvEnabled |
( |
| ) |
|
Definition at line 23 of file StringTest.php.
References $result, and array.
25 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getIsIconvEnabled'));
Create styles array
The data for the language used.
◆ testGetIsMbStringEnabled()
StringTest::testGetIsMbStringEnabled |
( |
| ) |
|
Definition at line 17 of file StringTest.php.
References $result, and array.
19 $result = call_user_func(
array(
'PHPExcel_Shared_String',
'getIsMbstringEnabled'));
Create styles array
The data for the language used.
◆ testGetThousandsSeparator()
StringTest::testGetThousandsSeparator |
( |
| ) |
|
Definition at line 47 of file StringTest.php.
References $result, and array.
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);
Create styles array
The data for the language used.
◆ testSetCurrencyCode()
StringTest::testSetCurrencyCode |
( |
| ) |
|
Definition at line 74 of file StringTest.php.
References $result, and array.
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);
Create styles array
The data for the language used.
◆ testSetDecimalSeparator()
StringTest::testSetDecimalSeparator |
( |
| ) |
|
Definition at line 38 of file StringTest.php.
References $result, and array.
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);
Create styles array
The data for the language used.
◆ testSetThousandsSeparator()
StringTest::testSetThousandsSeparator |
( |
| ) |
|
Definition at line 56 of file StringTest.php.
References $result, and array.
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);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/StringTest.php