1 | <?php |
||
27 | abstract class TestCase extends BaseTestCase |
||
28 | { |
||
29 | /** |
||
30 | * @param Adapter $adapter |
||
31 | * @param Extractor $annotationExtractor |
||
32 | * @param Generator $asserterGenerator |
||
33 | * @param Manager $assertionManager |
||
34 | * @param Closure $reflectionClassFactory |
||
35 | * @param Closure $phpExtensionFactory |
||
36 | * @param Analyzer $analyzer |
||
37 | */ |
||
38 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * @param callable $callable |
||
67 | * |
||
68 | * @return \Cubiche\Core\Delegate\Delegate |
||
69 | */ |
||
70 | protected function callableMock(callable $callable) |
||
76 | |||
77 | /** |
||
78 | * @return \Cubiche\Core\Delegate\Delegate |
||
79 | */ |
||
80 | protected function delegateMock($return = null) |
||
86 | |||
87 | /** |
||
88 | * @param mixed $return |
||
89 | * |
||
90 | * @return \Cubiche\Core\Delegate\Delegate |
||
91 | */ |
||
92 | protected function delegateMockWithReturn($return) |
||
96 | |||
97 | /** |
||
98 | * @param mixed $return |
||
|
|||
99 | * |
||
100 | * @return \Cubiche\Core\Delegate\Delegate |
||
101 | */ |
||
102 | protected function delegateMockWithException(\Exception $e) |
||
108 | |||
109 | /** |
||
110 | * @param MockAggregator $mock |
||
111 | * |
||
112 | * @return mixed |
||
113 | */ |
||
114 | protected function delegateCall(MockAggregator $mock) |
||
118 | } |
||
119 |
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.