Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function getNonExistingUser(ApiTester $I) |
||
26 | { |
||
27 | $I->wantTo('get non-existing user'); |
||
28 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
29 | $I->sendGET('/user/0'); |
||
30 | $I->seeResponseCodeIs(HttpCode::NOT_FOUND); |
||
31 | $I->seeResponseContainsJson([ |
||
32 | 'data' => [ |
||
33 | 'user' => null |
||
34 | ] |
||
35 | ]); |
||
36 | } |
||
37 | } |
||
38 |
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.