Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function testConnectionException() |
||
24 | { |
||
25 | try { |
||
26 | throw new ConnectionException('instance', 'Could not connect'); |
||
27 | } catch (ConnectionException $e) { |
||
28 | $this->assertEquals('instance', $e->getInstance()); |
||
29 | $this->assertEquals('Could not connect', $e->getMessage()); |
||
30 | return; |
||
31 | } |
||
45 |