| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function getNonExistingUser(ApiTester $I) |
||
| 24 | { |
||
| 25 | $I->wantTo('get non-existing user'); |
||
| 26 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
| 27 | $I->sendGET('/user/0'); |
||
| 28 | $I->seeResponseCodeIs(HttpCode::NOT_FOUND); |
||
| 29 | $I->seeResponseContainsJson([ |
||
| 30 | 'success' => false, |
||
| 31 | 'data' => [ |
||
| 32 | 'user' => null |
||
| 33 | ] |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.