1 | <?php |
||
12 | class GithubRepoConverterTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @dataProvider provideConversionData |
||
16 | * |
||
17 | * @param $repoData |
||
18 | */ |
||
19 | public function testConvert($repoData) |
||
30 | |||
31 | /** |
||
32 | * @return array |
||
33 | */ |
||
34 | public function provideConversionData() |
||
40 | |||
41 | /** |
||
42 | * @return m\MockInterface |
||
43 | */ |
||
44 | protected function provideTestRepo() |
||
48 | |||
49 | /** |
||
50 | * @return JsonSampleDataProvider |
||
51 | */ |
||
52 | protected function getDataProvider() |
||
56 | } |
||
57 |
This check compares calls to functions or methods with their respective definitions. If the call has more 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.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.