Changeset 56467 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 08/25/2023 03:24:00 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r56421 r56467 569 569 add_action( 'deprecated_function_run', array( $this, 'deprecated_function_run' ), 10, 3 ); 570 570 add_action( 'deprecated_argument_run', array( $this, 'deprecated_function_run' ), 10, 3 ); 571 add_action( 'deprecated_class_run', array( $this, 'deprecated_function_run' ), 10, 3 ); 571 572 add_action( 'deprecated_file_included', array( $this, 'deprecated_function_run' ), 10, 4 ); 572 573 add_action( 'deprecated_hook_run', array( $this, 'deprecated_function_run' ), 10, 4 ); … … 575 576 add_action( 'deprecated_function_trigger_error', '__return_false' ); 576 577 add_action( 'deprecated_argument_trigger_error', '__return_false' ); 578 add_action( 'deprecated_class_trigger_error', '__return_false' ); 577 579 add_action( 'deprecated_file_trigger_error', '__return_false' ); 578 580 add_action( 'deprecated_hook_trigger_error', '__return_false' ); … … 741 743 $message = sprintf( 742 744 'Function %1$s was called with an argument that is deprecated since version %2$s with no alternative available.', 745 $function_name, 746 $version 747 ); 748 } 749 break; 750 751 case 'deprecated_class_run': 752 if ( $replacement ) { 753 $message = sprintf( 754 'Class %1$s is deprecated since version %2$s! Use %3$s instead.', 755 $function_name, 756 $version, 757 $replacement 758 ); 759 } else { 760 $message = sprintf( 761 'Class %1$s is deprecated since version %2$s with no alternative available.', 743 762 $function_name, 744 763 $version
Note: See TracChangeset
for help on using the changeset viewer.