Skip to content

Commit

Permalink
Docs: add missing return type void annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Sep 23, 2023
1 parent a3f1bea commit 9f0dd80
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/WPIntegration/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ abstract class TestCase extends WP_UnitTestCase {

/**
* Wrapper method for the `set_up_before_class()` method for forward-compatibility with WP 5.9.
*
* @return void
*/
public static function setUpBeforeClass() {
parent::setUpBeforeClass();
Expand All @@ -67,6 +69,8 @@ public static function setUpBeforeClass() {

/**
* Wrapper method for the `tear_down_after_class()` method for forward-compatibility with WP 5.9.
*
* @return void
*/
public static function tearDownAfterClass() {
static::tear_down_after_class();
Expand All @@ -75,6 +79,8 @@ public static function tearDownAfterClass() {

/**
* Wrapper method for the `set_up()` method for forward-compatibility with WP 5.9.
*
* @return void
*/
public function setUp() {
parent::setUp();
Expand All @@ -83,6 +89,8 @@ public function setUp() {

/**
* Wrapper method for the `tear_down()` method for forward-compatibility with WP 5.9.
*
* @return void
*/
public function tearDown() {
$this->tear_down();
Expand All @@ -91,6 +99,8 @@ public function tearDown() {

/**
* Wrapper method for the `assert_pre_conditions()` method for forward-compatibility with WP 5.9.
*
* @return void
*/
protected function assertPreConditions() {
parent::assertPreConditions();
Expand All @@ -99,6 +109,8 @@ protected function assertPreConditions() {

/**
* Wrapper method for the `assert_post_conditions()` method for forward-compatibility with WP 5.9.
*
* @return void
*/
protected function assertPostConditions() {
parent::assertPostConditions();
Expand All @@ -107,31 +119,43 @@ protected function assertPostConditions() {

/**
* Placeholder method for forward-compatibility with WP 5.9.
*
* @return void
*/
public static function set_up_before_class() {}

/**
* Placeholder method for forward-compatibility with WP 5.9.
*
* @return void
*/
public static function tear_down_after_class() {}

/**
* Placeholder method for forward-compatibility with WP 5.9.
*
* @return void
*/
protected function set_up() {}

/**
* Placeholder method for forward-compatibility with WP 5.9.
*
* @return void
*/
protected function tear_down() {}

/**
* Placeholder method for forward-compatibility with WP 5.9.
*
* @return void
*/
protected function assert_pre_conditions() {}

/**
* Placeholder method for forward-compatibility with WP 5.9.
*
* @return void
*/
protected function assert_post_conditions() {}
}

0 comments on commit 9f0dd80

Please sign in to comment.