Skip to content

Commit 824d809

Browse files
anomiexmatticbot
authored andcommitted
tests: Rename and abstractify custom TestCase base classes (#41935)
PHPUnit 10+ requires that test class names match the filename, PSR-4 style. We've written a PHPUnit sniff to help find mismatches, but to work properly it needs any custom TestCase base classes to be abstract and have names ending in "TestCase" or "TestBase". This PR adds `abstract` where necessary and renames classes where necessary. In a few places this has already caused other existing PHPUnit rules to start fixing things. 😀 Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/13500864408 Upstream-Ref: Automattic/jetpack@18072cc
1 parent 78f5a26 commit 824d809

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/composer/installed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dist": {
88
"type": "path",
99
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
10-
"reference": "da41451c1401be76130cea3e326bef27b8ae9ceb"
10+
"reference": "e3566754d27e5a0421fe1d9a75687b917ce3ae31"
1111
},
1212
"require": {
1313
"php": ">=7.2"

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'automattic/jetpack-device-detection' => array(
1414
'pretty_version' => '3.0.0',
1515
'version' => '3.0.0.0',
16-
'reference' => 'da41451c1401be76130cea3e326bef27b8ae9ceb',
16+
'reference' => 'e3566754d27e5a0421fe1d9a75687b917ce3ae31',
1717
'type' => 'jetpack-library',
1818
'install_path' => __DIR__ . '/../automattic/jetpack-device-detection',
1919
'aliases' => array(),

0 commit comments

Comments
 (0)