| 1 | <?php |
||
| 5 | class WP_Test_Actions extends TestCase { |
||
| 6 | function test_something() { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Mock a set of filters. |
||
| 11 | * |
||
| 12 | * @param array $args Array of filters with their arguments. |
||
|
|
|||
| 13 | * @return phpmock\Mock The mock object. |
||
| 14 | */ |
||
| 15 | protected function mock_filters( $filters = array() ) { |
||
| 18 | } |
||
| 19 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.