| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function testCall() |
||
| 11 | { |
||
| 12 | $api = new Api; |
||
| 13 | |||
| 14 | $code = ProtectedHelper::catchExceptionCode(function () use ($api) { |
||
| 15 | $api->withoutParams(); |
||
| 16 | }); |
||
| 17 | $this->assertEquals(0, $code); |
||
| 18 | |||
| 19 | $code = ProtectedHelper::catchExceptionCode(function () use ($api) { |
||
| 20 | $api->notExisted(); |
||
|
|
|||
| 21 | }); |
||
| 22 | $this->assertEquals(Response::METHOD_NOT_FOUND, $code); |
||
| 23 | } |
||
| 25 |