Skip to content

Commit 74bb933

Browse files
Build/Test Tools: Remove WP_UnitTestCase_Base::checkRequirements().
The method was hard-deprecated in WordPress 5.9 and retained only as a backward compatibility layer for external test suites that may have been still calling `parent::checkRequirements()` on PHPUnit 5/6. As the method has not been functional since `TestCase::checkRequirements()` became `private` in PHPUnit 7.0, it should be safe to remove at this point. Reference: [https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/ PHPUnit Compatibility and WordPress Versions]. Developed in #13599. Follow-up to r51605. Props codesawmir, mukesh27. Fixes #66135. git-svn-id: https://develop.svn.wordpress.org/trunk@63760 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a1f7749 commit 74bb933

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎tests/phpunit/includes/abstract-testcase.php‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,21 +1428,6 @@ public function go_to( $url ) {
14281428
$GLOBALS['wp']->main( $parts['query'] );
14291429
}
14301430

1431-
/**
1432-
* Allows tests to be skipped on single or multisite installs by using @group annotations.
1433-
*
1434-
* This is a custom extension of the PHPUnit requirements handling.
1435-
*
1436-
* @since 3.5.0
1437-
* @deprecated 5.9.0 This method has not been functional since PHPUnit 7.0.
1438-
*/
1439-
protected function checkRequirements() {
1440-
// For PHPUnit 5/6, as we're overloading a public PHPUnit native method in those versions.
1441-
if ( is_callable( 'PHPUnit\Framework\TestCase', 'checkRequirements' ) ) {
1442-
parent::checkRequirements();
1443-
}
1444-
}
1445-
14461431
/**
14471432
* Skips the current test if there is an open Trac ticket associated with it.
14481433
*

0 commit comments

Comments
 (0)