public function CodePageTest::testNumberToNameWithUnsupportedCodePage in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/CodePageTest.php \CodePageTest::testNumberToNameWithUnsupportedCodePage()
File
- vendor/
phpoffice/ phpexcel/ unitTests/ Classes/ PHPExcel/ Shared/ CodePageTest.php, line 45
Class
Code
public function testNumberToNameWithUnsupportedCodePage() {
$unsupportedCodePage = 720;
try {
$result = call_user_func(array(
'PHPExcel_Shared_CodePage',
'NumberToName',
), $unsupportedCodePage);
} catch (Exception $e) {
$this
->assertEquals($e
->getMessage(), 'Code page 720 not supported.');
return;
}
$this
->fail('An expected exception has not been raised.');
}