Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function testClassSearch($className, $expectedFoundClasses) |
||
13 | { |
||
14 | $classFinder = new ClassFinder( |
||
15 | realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR, |
||
16 | $className |
||
17 | ); |
||
18 | |||
19 | $foundClasses = $classFinder->findClasses(); |
||
20 | sort($foundClasses); |
||
21 | sort($expectedFoundClasses); |
||
22 | $this->assertEquals( |
||
23 | $expectedFoundClasses, |
||
24 | $foundClasses |
||
25 | ); |
||
26 | } |
||
27 | |||
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.