Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function testNumberToNameWithInvalidCodePage() |
||
28 | { |
||
29 | $invalidCodePage = 12345; |
||
30 | |||
31 | try { |
||
32 | CodePage::numberToName($invalidCodePage); |
||
33 | } catch (Exception $e) { |
||
34 | self::assertEquals($e->getMessage(), 'Unknown codepage: 12345'); |
||
35 | |||
36 | return; |
||
37 | } |
||
38 | $this->fail('An expected exception has not been raised.'); |
||
39 | } |
||
55 |