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