| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function getNonExistingUser(ApiTester $I) |
||
| 27 | { |
||
| 28 | $I->wantTo('get non-existing user'); |
||
| 29 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
| 30 | $I->sendGET('/user/0'); |
||
| 31 | $I->seeResponseCodeIs(HttpCode::NOT_FOUND); |
||
| 32 | $I->seeResponseContainsJson([ |
||
| 33 | 'success' => false, |
||
| 34 | 'data' => [ |
||
| 35 | 'user' => null |
||
| 36 | ] |
||
| 37 | ]); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.