Definition at line 6 of file CodePageTest.php.
◆ providerCodePage()
CodePageTest::providerCodePage |
( |
| ) |
|
◆ setUp()
Definition at line 9 of file CodePageTest.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'
◆ testCodePageNumberToName()
CodePageTest::testCodePageNumberToName |
( |
| ) |
|
providerCodePage
Definition at line 20 of file CodePageTest.php.
References $result, and array.
22 $args = func_get_args();
23 $expectedResult = array_pop($args);
24 $result = call_user_func_array(
array(
'PHPExcel_Shared_CodePage',
'NumberToName'),$args);
25 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testNumberToNameWithInvalidCodePage()
CodePageTest::testNumberToNameWithInvalidCodePage |
( |
| ) |
|
Definition at line 33 of file CodePageTest.php.
References $result, and array.
35 $invalidCodePage = 12345;
37 $result = call_user_func(
array(
'PHPExcel_Shared_CodePage',
'NumberToName'),$invalidCodePage);
39 $this->assertEquals($e->getMessage(),
'Unknown codepage: 12345');
42 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testNumberToNameWithUnsupportedCodePage()
CodePageTest::testNumberToNameWithUnsupportedCodePage |
( |
| ) |
|
Definition at line 45 of file CodePageTest.php.
References $result, and array.
47 $unsupportedCodePage = 720;
49 $result = call_user_func(
array(
'PHPExcel_Shared_CodePage',
'NumberToName'),$unsupportedCodePage);
51 $this->assertEquals($e->getMessage(),
'Code page 720 not supported.');
54 $this->fail(
'An expected exception has not been raised.');
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/CodePageTest.php