Changeset 51872
- Timestamp:
- 09/26/2021 03:27:10 AM (3 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r51831 r51872 504 504 add_action( 'deprecated_function_run', array( $this, 'deprecated_function_run' ) ); 505 505 add_action( 'deprecated_argument_run', array( $this, 'deprecated_function_run' ) ); 506 add_action( 'deprecated_file_included', array( $this, 'deprecated_function_run' ) ); 506 507 add_action( 'deprecated_hook_run', array( $this, 'deprecated_function_run' ) ); 507 508 add_action( 'doing_it_wrong_run', array( $this, 'doing_it_wrong_run' ) ); 508 509 add_action( 'deprecated_function_trigger_error', '__return_false' ); 509 510 add_action( 'deprecated_argument_trigger_error', '__return_false' ); 511 add_action( 'deprecated_file_trigger_error', '__return_false' ); 510 512 add_action( 'deprecated_hook_trigger_error', '__return_false' ); 511 513 add_action( 'doing_it_wrong_trigger_error', '__return_false' ); -
trunk/tests/phpunit/tests/compat/jsonEncodeDecode.php
r51852 r51872 9 9 10 10 public function test_json_encode_decode() { 11 $this->expectDeprecation(); 11 $this->setExpectedDeprecated( 'class-json.php' ); 12 $this->setExpectedDeprecated( 'Services_JSON::__construct' ); 13 $this->setExpectedDeprecated( 'Services_JSON::encodeUnsafe' ); 14 $this->setExpectedDeprecated( 'Services_JSON::_encode' ); 15 $this->setExpectedDeprecated( 'Services_JSON::reduce_string' ); 16 $this->setExpectedDeprecated( 'Services_JSON::decode' ); 17 $this->setExpectedDeprecated( 'Services_JSON::isError' ); 18 $this->setExpectedDeprecated( 'Services_JSON::strlen8' ); 19 $this->setExpectedDeprecated( 'Services_JSON::substr8' ); 12 20 13 21 require_once ABSPATH . WPINC . '/class-json.php';
Note: See TracChangeset
for help on using the changeset viewer.