Skip to content

Commit fafd8dc

Browse files
anomiexmatticbot
authored andcommitted
phpunit: Rename package test classes for PHPUnit 11 compat (pt 2) (#42128)
PHPUnit 10+ requires that test class names match the filename, PSR-4 style. This PR renames the test classes and files in packages to end in `Test` or `_Test`, depending on whether the class names are following WordPress's underscore-naming convention or are using CamelCase, and removing redundant `WP_Test_` or `Test_` prefixes. This also adds our standard Jetpack-Tests ruleset to tests/.phpcs.dir.xml in the packages, and removes some redundant inline phpcs:ignore or phpcs:disable directives. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/13637625724 Upstream-Ref: Automattic/jetpack@f1afaaa
1 parent 47e1c96 commit fafd8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"automattic/jetpack-connection": "^6.7.0-alpha",
1111
"automattic/jetpack-logo": "^3.0.2-alpha",
1212
"automattic/jetpack-status": "^5.0.5-alpha",
13-
"automattic/jetpack-sync": "^4.8.2"
13+
"automattic/jetpack-sync": "^4.8.3-alpha"
1414
},
1515
"require-dev": {
1616
"yoast/phpunit-polyfills": "^1.1.1",

0 commit comments

Comments
 (0)