diff --git a/tests/phpunit/includes/abstract-testcase.php b/tests/phpunit/includes/abstract-testcase.php
index 251d187a25..129943f274 100644
|
a
|
b
|
abstract class WP_UnitTestCase_Base extends PHPUnit_Adapter_TestCase { |
| 568 | 568 | |
| 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 ); |
| 573 | 574 | add_action( 'doing_it_wrong_run', array( $this, 'doing_it_wrong_run' ), 10, 3 ); |
| 574 | 575 | |
| 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' ); |
| 579 | 581 | add_action( 'doing_it_wrong_trigger_error', '__return_false' ); |
| … |
… |
abstract class WP_UnitTestCase_Base extends PHPUnit_Adapter_TestCase { |
| 746 | 748 | } |
| 747 | 749 | break; |
| 748 | 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.', |
| | 762 | $function_name, |
| | 763 | $version |
| | 764 | ); |
| | 765 | } |
| | 766 | break; |
| | 767 | |
| 749 | 768 | case 'deprecated_file_included': |
| 750 | 769 | if ( $replacement ) { |
| 751 | 770 | $message = sprintf( |