You appear to be a bot. Output may be restricted
Description
Declare an expected_deprecated_function()
or _deprecated_argument()
call from within a test.
Usage
WP_UnitTestCase::setExpectedDeprecated( $deprecated );
Parameters
- $deprecated
- ( string ) required – Name of the function, method, class, or argument that is deprecated. Must match first parameter of the
_deprecated_function()
or_deprecated_argument()
call.
Returns
voidSource
File name: oik-batch/tests/testcase.phpLines:
1 to 3 of 3
public function setExpectedDeprecated( $deprecated ) { array_push( $this->expected_deprecated, $deprecated ); }View on GitHub