Conditions | 2 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | public function synopsis() |
||
20 | { |
||
21 | $exception = new MethodNotAllowedException( |
||
22 | 'Cannot use GET', |
||
23 | array('POST') |
||
24 | ); |
||
25 | $this->assertEquals(405, $exception->getAssociatedStatusCode()); |
||
26 | try { |
||
27 | throw $exception; |
||
28 | } catch (MethodNotAllowedException $e) { |
||
29 | $this->assertEquals('Cannot use GET', $e->getMessage()); |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 |