Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function testNumberToNameWithUnsupportedCodePage() |
||
42 | { |
||
43 | $unsupportedCodePage = 720; |
||
44 | |||
45 | try { |
||
46 | CodePage::numberToName($unsupportedCodePage); |
||
47 | } catch (Exception $e) { |
||
48 | self::assertEquals($e->getMessage(), 'Code page 720 not supported.'); |
||
49 | |||
50 | return; |
||
51 | } |
||
52 | $this->fail('An expected exception has not been raised.'); |
||
53 | } |
||
55 |