You appear to be a bot. Output may be restricted
Description
Usage
WP_UnitTestCase::expectDeprecated();
Parameters
Returns
voidSource
File name: oik-batch/tests/testcase.phpLines:
1 to 17 of 17
function expectDeprecated() { $annotations = $this->getAnnotations(); foreach ( array( 'class', 'method' ) as $depth ) { if ( ! empty( $annotations[ $depth ]['expectedDeprecated'] ) ) $this->expected_deprecated = array_merge( $this->expected_deprecated, $annotations[ $depth ]['expectedDeprecated'] ); if ( ! empty( $annotations[ $depth ]['expectedIncorrectUsage'] ) ) $this->expected_doing_it_wrong = array_merge( $this->expected_doing_it_wrong, $annotations[ $depth ]['expectedIncorrectUsage'] ); } add_action( 'deprecated_function_run', array( $this, 'deprecated_function_run' ) ); add_action( 'deprecated_argument_run', array( $this, 'deprecated_function_run' ) ); add_action( 'deprecated_hook_run', array( $this, 'deprecated_function_run' ) ); add_action( 'doing_it_wrong_run', array( $this, 'doing_it_wrong_run' ) ); add_action( 'deprecated_function_trigger_error', '__return_false' ) <; add_action( 'deprecated_argument_trigger_error', '__return_false' ) <; add_action( 'deprecated_hook_trigger_error', '__return_false' ) <; add_action( 'doing_it_wrong_trigger_error', '__return_false' ) <; }View on GitHub