You are here

public function CodePageTest::testNumberToNameWithUnsupportedCodePage in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.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

CodePageTest

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.');
}