Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class BuildSelectQueryStepTest extends TestCase |
||
11 | { |
||
12 | |||
13 | public function testCanBeConstructed() |
||
18 | } |
||
19 | |||
20 | public function testRequiresBefore() |
||
21 | { |
||
22 | $accessManager = $this->createMock(AccessManager::class); |
||
23 | $step = new BuildSelectQueryStep($accessManager); |
||
24 | $this->assertEquals([GetQueryBuilderStep::class], $step->requiresBefore()); |
||
25 | } |
||
26 | |||
27 | public function testExecute() |
||
29 | |||
30 | } |
||
32 |
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.