aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@cscott.net>2024-05-20 22:52:58 -0400
committerC. Scott Ananian <cscott@cscott.net>2024-05-22 11:43:26 -0400
commit5d775fa1b3c6069cb89ce12464bf7933a720e313 (patch)
tree9112d6e756d3710ea0484e7d36236c9f46f7ca4f /tests/common
parentf66bda6a2ed473c77cd7e9e5b278adceaab51681 (diff)
downloadmediawikicore-5d775fa1b3c6069cb89ce12464bf7933a720e313.tar.gz
mediawikicore-5d775fa1b3c6069cb89ce12464bf7933a720e313.zip
SerializationTestTrait: make phpunit data providers static
PHPUnit 10 requires test data providers to be static. This patch doesn't completely do the job, as some providers currently call the non-static method `$this->markTestSkippedIfPhp()`, but it gets us closer to PHPUnit 10 compatibility. This also lets us simplify the validateParserCacheSerializationTestData maintenance script and make it slightly more generic. Change-Id: Ie3696bfaa29aca9da45f54239126222e8c847ea9
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/TestsAutoLoader.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/common/TestsAutoLoader.php b/tests/common/TestsAutoLoader.php
index e58c47aed08d..47b9e831febb 100644
--- a/tests/common/TestsAutoLoader.php
+++ b/tests/common/TestsAutoLoader.php
@@ -153,6 +153,8 @@ $wgAutoloadClasses += [
'MediaWiki\\Tests\\OutputTransform\\OutputTransformStageTestBase' => "$testDir/phpunit/includes/OutputTransform/OutputTransformStageTestBase.php",
# tests/phpunit/includes/parser
+ 'MediaWiki\\Tests\\Parser\\CacheTimeTest' => "$testDir/phpunit/includes/parser/CacheTimeTest.php",
+ 'MediaWiki\\Tests\\Parser\\ParserOutputTest' => "$testDir/phpunit/includes/parser/ParserOutputTest.php",
'ParserIntegrationTest' => "$testDir/phpunit/suites/ParserIntegrationTest.php",
'MediaWiki\\Tests\\Parser\\ParserCacheSerializationTestCases' =>
"$testDir/phpunit/includes/parser/ParserCacheSerializationTestCases.php",