| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | { |
||
| 9 | $I->wantTo('get user'); |
||
| 10 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
| 11 | $I->sendGET('/user/1'); |
||
| 12 | $I->seeResponseCodeIs(HttpCode::OK); |
||
| 13 | $I->seeResponseContainsJson([ |
||
| 14 | 'success' => true, |
||
| 15 | 'data' => [ |
||
| 16 | 'user' => [ |
||
| 17 | 'email' => '[email protected]', |
||
| 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.