1 | <?php |
||
4 | class ClassFinderTest extends \PHPUnit_Framework_TestCase |
||
5 | { |
||
6 | /** |
||
7 | * @dataProvider provideScenarios |
||
8 | * @param string $className |
||
9 | * @param string $extension |
||
|
|||
10 | * @param array $expectedFoundClasses |
||
11 | */ |
||
12 | public function testClassSearch($className, $expectedFoundClasses) |
||
27 | |||
28 | public function provideScenarios() |
||
56 | } |
||
57 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.