Conditions | 2 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | public function testExceptionWhenStatusTextDoesNotExists() |
||
50 | { |
||
51 | $http = new Http(); |
||
52 | |||
53 | $errorObject = null; |
||
54 | $message = "No exception"; |
||
55 | |||
56 | try |
||
57 | { |
||
58 | $text = $http->getStatusText(65431); |
||
|
|||
59 | } |
||
60 | catch (\Exception $e) |
||
61 | { |
||
62 | $errorObject = ($e instanceof \RuntimeException); |
||
63 | $message = $e->getMessage(); |
||
64 | } |
||
65 | finally |
||
66 | { |
||
67 | $this->assertTrue($errorObject, $message); |
||
68 | } |
||
71 |