Total Complexity | 3 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class AggregatorTest extends WebTestCase |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var Aggregator |
||
14 | */ |
||
15 | private $aggregator; |
||
16 | |||
17 | private $projectSampleData = [ |
||
18 | 'name' => 'depmon', |
||
19 | 'git' => 'https://github.com/xima-media/depmon.git', |
||
20 | 'path' => '' |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * Preparation |
||
25 | */ |
||
26 | public function setUp() |
||
27 | { |
||
28 | $this->aggregator = new Aggregator(); |
||
29 | } |
||
30 | |||
31 | public function testAggregation() |
||
44 | |||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Clean up |
||
49 | */ |
||
50 | public function tearDown() |
||
57 | } |
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.