@@ -124,9 +124,9 @@ |
||
124 | 124 | * Optionally can limit the mock to invocations with certain arguments. |
125 | 125 | * |
126 | 126 | * @param string $function_name Name of the function. |
127 | - * @param mixed $return_value Return value of the function. |
|
127 | + * @param boolean $return_value Return value of the function. |
|
128 | 128 | * @param mixed $arg_1_value Value of the first argument value we expect. |
129 | - * @param mixed $arg_2_value Value of the second argument value we expect. |
|
129 | + * @param string $arg_2_value Value of the second argument value we expect. |
|
130 | 130 | * @return phpmock\Mock The mock object. |
131 | 131 | */ |
132 | 132 | protected function mock_function( $function_name, $return_value = null, $arg_1_value = null, $arg_2_value = null ) { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * Mock a set of constants. |
308 | 308 | * |
309 | 309 | * @param array $constants Array of sets with constants and their respective values. |
310 | - * @return phpmock\Mock The mock object. |
|
310 | + * @return phpmock\Mock[] The mock object. |
|
311 | 311 | */ |
312 | 312 | protected function mock_constants( $constants = array() ) { |
313 | 313 | $prepare_constant = function( $constant ) { |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | /** |
324 | 324 | * Mock $wpdb->get_var() and make it return a certain value. |
325 | 325 | * |
326 | - * @param mixed $return_value Return value of the function. |
|
326 | + * @param integer $return_value Return value of the function. |
|
327 | 327 | * |
328 | 328 | * PHPUnit\Framework\MockObject\MockObject The mock object. |
329 | 329 | */ |