Changeset 51568 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 08/07/2021 10:29:41 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r51562 r51568 61 61 * Runs the routine before setting up all tests. 62 62 */ 63 public static function set UpBeforeClass() {63 public static function set_up_before_class() { 64 64 global $wpdb; 65 65 … … 69 69 ini_set( 'display_errors', 1 ); 70 70 71 parent::set UpBeforeClass();71 parent::set_up_before_class(); 72 72 73 73 $class = get_called_class(); … … 83 83 * Runs the routine after all tests have been run. 84 84 */ 85 public static function tear DownAfterClass() {86 parent::tear DownAfterClass();85 public static function tear_down_after_class() { 86 parent::tear_down_after_class(); 87 87 88 88 _delete_all_data(); … … 101 101 * Runs the routine before each test is executed. 102 102 */ 103 public function set Up() {103 public function set_up() { 104 104 set_time_limit( 0 ); 105 105 … … 141 141 * After a test method runs, resets any state in WordPress the test method might have changed. 142 142 */ 143 public function tear Down() {143 public function tear_down() { 144 144 global $wpdb, $wp_query, $wp; 145 145 $wpdb->query( 'ROLLBACK' ); … … 536 536 * @since 4.2.0 537 537 */ 538 protected function assert PostConditions() {538 protected function assert_post_conditions() { 539 539 $this->expectedDeprecated(); 540 540 }
Note: See TracChangeset
for help on using the changeset viewer.