aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiParseTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2023-05-20 00:32:30 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2023-05-20 01:05:27 +0200
commitd36073cdcf15cc4cfa1d3e5010082d4f0e87b77c (patch)
treeb0cde754a540f46f82367d30fe1d9f6ae7d1a773 /tests/phpunit/includes/api/ApiParseTest.php
parentc4cdffcd49bf5949790f5c18e359e0305fe60ff1 (diff)
downloadmediawikicore-d36073cdcf15cc4cfa1d3e5010082d4f0e87b77c.tar.gz
mediawikicore-d36073cdcf15cc4cfa1d3e5010082d4f0e87b77c.zip
tests: Make some PHPUnit data providers static
Initally used a new sniff with autofix (T333745), but some provide are defined non-static in TestBase class and need more work to make them static in a compatible way Bug: T332865 Change-Id: I889d33424f0c01fb26f2d86f8d4fc3de3e568843
Diffstat (limited to 'tests/phpunit/includes/api/ApiParseTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiParseTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiParseTest.php b/tests/phpunit/includes/api/ApiParseTest.php
index ae83005fd98d..ca4e092a716e 100644
--- a/tests/phpunit/includes/api/ApiParseTest.php
+++ b/tests/phpunit/includes/api/ApiParseTest.php
@@ -588,7 +588,7 @@ class ApiParseTest extends ApiTestCase {
$this->assertParsedToRegexp( $expected, $res );
}
- public function providerTestParsoid() {
+ public static function providerTestParsoid() {
// Legacy parses, with and without pre-existing content.
$expected = '!^<p><a href="[^"]*" title="Foo">Foo</a>\n</p>$!';
yield [ false, false, $expected ];