@@ -176,7 +176,6 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Mock a set of filters. |
178 | 178 | * |
179 | - * @param array $args Array of filters with their arguments. |
|
180 | 179 | * @return phpmock\Mock The mock object. |
181 | 180 | */ |
182 | 181 | protected function mock_filters( $filters = array() ) { |
@@ -186,8 +185,7 @@ discard block |
||
186 | 185 | /** |
187 | 186 | * Mock a set of constants. |
188 | 187 | * |
189 | - * @param array $args Array of sets with constants and their respective values. |
|
190 | - * @return phpmock\Mock The mock object. |
|
188 | + * @return phpmock\Mock[] The mock object. |
|
191 | 189 | */ |
192 | 190 | protected function mock_constants( $constants = array() ) { |
193 | 191 | $prepare_constant = function( $constant ) { |
@@ -204,7 +202,7 @@ discard block |
||
204 | 202 | * Mock a global function and make it return a certain value. |
205 | 203 | * |
206 | 204 | * @param string $function_name Name of the function. |
207 | - * @param mixed $return_value Return value of the function. |
|
205 | + * @param string|boolean $return_value Return value of the function. |
|
208 | 206 | * @return phpmock\Mock The mock object. |
209 | 207 | */ |
210 | 208 | protected function mock_function( $function_name, $return_value = null ) { |
@@ -220,7 +218,7 @@ discard block |
||
220 | 218 | /** |
221 | 219 | * Mock $wpdb->get_var() and make it return a certain value. |
222 | 220 | * |
223 | - * @param mixed $return_value Return value of the function. |
|
221 | + * @param integer $return_value Return value of the function. |
|
224 | 222 | * @return PHPUnit\Framework\MockObject\MockObject The mock object. |
225 | 223 | */ |
226 | 224 | protected function mock_wpdb_get_var( $return_value = null ) { |