getMessage(), 'Unknown codepage: 12345'); return; } self::fail('An expected exception has not been raised.'); } public function testNumberToNameWithUnsupportedCodePage(): void { $unsupportedCodePage = 720; try { CodePage::numberToName($unsupportedCodePage); } catch (Exception $e) { self::assertEquals($e->getMessage(), 'Code page 720 not supported.'); return; } self::fail('An expected exception has not been raised.'); } }