tests: Make PHPUnit data providers static

Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: I845972941b3e0c330a59edef72c3b90902a8b722
这个提交包含在:
Umherirrender 2023-05-20 11:29:35 +02:00
父节点 cb391a0a4a
当前提交 27bfaf2803

查看文件

@ -25,7 +25,7 @@ class ServiceWiringTest extends MediaWikiIntegrationTestCase {
$this->addToAssertionCount( 1 );
}
public function provideService() {
public static function provideService() {
$wiring = require __DIR__ . '/../../includes/ServiceWiring.php';
foreach ( $wiring as $name => $_ ) {
yield $name => [ $name ];