aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/mail/MailAddressTest.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/mail/MailAddressTest.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/mail/MailAddressTest.php')
-rw-r--r--tests/phpunit/includes/mail/MailAddressTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/mail/MailAddressTest.php b/tests/phpunit/includes/mail/MailAddressTest.php
index 5b51485a48e3..97c6940c3ccc 100644
--- a/tests/phpunit/includes/mail/MailAddressTest.php
+++ b/tests/phpunit/includes/mail/MailAddressTest.php
@@ -46,7 +46,7 @@ class MailAddressTest extends MediaWikiIntegrationTestCase {
$this->assertSame( $expected, $first->equals( $second ) );
}
- public function provideEquals(): Generator {
+ public static function provideEquals(): Generator {
$base = new MailAddress( 'a@b.c', 'name', 'realname' );
yield 'Different addresses' => [ $base, new MailAddress( 'xxx', 'name', 'realname' ), false ];