Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
f285e18 to
cadbe97
Compare
|
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
db0efa4 to
efe22fd
Compare
andrewserong
left a comment
There was a problem hiding this comment.
LGTM! Looks like a straightforward rename 👍
efe22fd to
239e32d
Compare
Part of #82934.
What?
Renames the camelCase PHPUnit fixture methods in 8 test classes to the snake_case names
yoast/phpunit-polyfillsexpects (setUp()→set_up(),tearDown()→tear_down(),setUpBeforeClass()→set_up_before_class(),tearDownAfterClass()→tear_down_after_class()), along with theirparent::calls.Why?
#84413 (directly below) moves
wp-phpunit/wp-phpunitto~5.9.0. From 5.9.0,WP_UnitTestCase_Baseextends the Polyfills'TestCase, which declares the camelCase fixture methods with a: voidreturn type and calls the snake_case ones instead. An untypedsetUp()in a subclass is an incompatible override, which is a fatal error on PHP 7.1 and later.wp/6.0makes the same change in #84280.How?
Every camelCase fixture method under
phpunit/was renamed, and none remain:class-block-context-test.php,class-override-script-test.php,class-wp-rest-url-details-controller-test.php,class-wp-theme-json-resolver-test.php:setUp/tearDownand theirparent::calls.class-block-editor-test.php,class-wp-test-rest-users-controller.php:setUpand itsparent::call. (class-wp-test-rest-users-controller.phpisn't run by PHPUnit, since it lacks the-test.phpsuffix, but is renamed for consistency.)navigation-page-test.php:setUpBeforeClass/tearDownAfterClassandsetUp/tearDown, with all fourparent::calls.navigation-test.php:setUp/tearDown, which don't callparent::.Testing
php -lpasses on all 8 files.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code