1 | <?php |
||
19 | class ProjectsResolverTest extends JsonApiTestCase |
||
20 | { |
||
21 | // public function testProjectsResolver() |
||
|
|||
22 | // { |
||
23 | // $this->projectsResolver( |
||
24 | // 'access-token-1', |
||
25 | // [ |
||
26 | // 'name' => '', |
||
27 | // ], |
||
28 | // '/projects' |
||
29 | // ); |
||
30 | // } |
||
31 | // |
||
32 | public function testProjectsFilteredByNameResolver() |
||
42 | |||
43 | // public function testProjectsWithAfter3AndFirst2() |
||
44 | // { |
||
45 | // $this->projectsResolver( |
||
46 | // 'access-token-1', |
||
47 | // [ |
||
48 | // 'after' => '3', |
||
49 | // 'first' => '2', |
||
50 | // ], |
||
51 | // '/projects_paginated' |
||
52 | // ); |
||
53 | // } |
||
54 | // |
||
55 | // public function testProjectsWithOtherUserResolver() |
||
56 | // { |
||
57 | // $this->projectsResolver( |
||
58 | // 'access-token-2', |
||
59 | // [ |
||
60 | // 'name' => '', |
||
61 | // ], |
||
62 | // '/projects_of_user2' |
||
63 | // ); |
||
64 | // } |
||
65 | // |
||
66 | private function projectsResolver($token, $projectConnectionInput, $jsonResult) |
||
101 | } |
||
102 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.