Skip to content

Commit bb6f31d

Browse files
committed
tests: Make PHPUnit data provider static
Bug: T332865 Change-Id: I5aa3eb34f10a97ca1d4c166db3acda8199c73127
1 parent c2b60f9 commit bb6f31d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Grammar/MatcherFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testMatchers( $what, $string, $expect = true ) {
5858
}
5959
}
6060

61-
public function provideMatchers() {
61+
public static function provideMatchers() {
6262
$img = 'http://www.example.com/foo.jpg';
6363
$dummy = new ComponentValueList();
6464
$san = new PropertySanitizer( [

tests/Grammar/UrangeMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testMatches( $text, $match, $start = 0, $end = 0, $remaining = 0
6161
}
6262
}
6363

64-
public function provideMatch() {
64+
public static function provideMatch() {
6565
return [
6666
'ident' => [ 'U+abcd', true, 0xabcd, 0xabcd ],
6767
'dimension' => [ 'U+12cd', true, 0x12cd, 0x12cd ],

0 commit comments

Comments
 (0)