- Timestamp:
- 09/24/2021 02:09:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5/tests/phpunit/includes/phpunit7/testcase.php
r51843 r51864 47 47 48 48 /** 49 * Wrapper method for the `set UpBeforeClass()` method for forward-compatibility with WP 5.9.49 * Wrapper method for the `set_up_before_class()` method for forward-compatibility with WP 5.9. 50 50 */ 51 public static function set_up_before_class() { 52 static::setUpBeforeClass(); 51 public static function setUpBeforeClass() { 52 parent::setUpBeforeClass(); 53 static::set_up_before_class(); 53 54 } 54 55 55 56 /** 56 * Wrapper method for the `tear DownAfterClass()` method for forward-compatibility with WP 5.9.57 * Wrapper method for the `tear_down_after_class()` method for forward-compatibility with WP 5.9. 57 58 */ 58 public static function tear_down_after_class() { 59 static::tearDownAfterClass(); 59 public static function tearDownAfterClass() { 60 static::tear_down_after_class(); 61 parent::tearDownAfterClass(); 60 62 } 61 63 62 64 /** 63 * Wrapper method for the `set Up()` method for forward-compatibility with WP 5.9.65 * Wrapper method for the `set_up()` method for forward-compatibility with WP 5.9. 64 66 */ 65 public function set_up() { 66 static::setUp(); 67 public function setUp() { 68 parent::setUp(); 69 $this->set_up(); 67 70 } 68 71 69 72 /** 70 * Wrapper method for the `tear Down()` method for forward-compatibility with WP 5.9.73 * Wrapper method for the `tear_down()` method for forward-compatibility with WP 5.9. 71 74 */ 72 public function tear_down() { 73 static::tearDown(); 75 public function tearDown() { 76 $this->tear_down(); 77 parent::tearDown(); 74 78 } 79 80 /** 81 * Wrapper method for the `assert_pre_conditions()` method for forward-compatibility with WP 5.9. 82 */ 83 protected function assertPreConditions() { 84 parent::assertPreConditions(); 85 $this->assert_pre_conditions(); 86 } 87 88 /** 89 * Wrapper method for the `assert_post_conditions()` method for forward-compatibility with WP 5.9. 90 */ 91 protected function assertPostConditions() { 92 parent::assertPostConditions(); 93 $this->assert_post_conditions(); 94 } 95 96 /** 97 * Placeholder method for forward-compatibility with WP 5.9. 98 */ 99 public static function set_up_before_class() {} 100 101 /** 102 * Placeholder method for forward-compatibility with WP 5.9. 103 */ 104 public static function tear_down_after_class() {} 105 106 /** 107 * Placeholder method for forward-compatibility with WP 5.9. 108 */ 109 protected function set_up() {} 110 111 /** 112 * Placeholder method for forward-compatibility with WP 5.9. 113 */ 114 protected function tear_down() {} 115 116 /** 117 * Placeholder method for forward-compatibility with WP 5.9. 118 */ 119 protected function assert_pre_conditions() {} 120 121 /** 122 * Placeholder method for forward-compatibility with WP 5.9. 123 */ 124 protected function assert_post_conditions() {} 75 125 }
Note: See TracChangeset
for help on using the changeset viewer.