X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FLinkerTest.php;h=351ad344330af6e8a2789da3490d84be72f421ab;hb=a8304d4c73fd04c338ae23f3028fc475921cc0fa;hp=ec4d98ec4fd8d417d37eb9feeca314d71e64e462;hpb=f4604544cdd0b9bd4a5b2920034181fa6adf7958;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/LinkerTest.php b/tests/phpunit/includes/LinkerTest.php index ec4d98ec4f..351ad34433 100644 --- a/tests/phpunit/includes/LinkerTest.php +++ b/tests/phpunit/includes/LinkerTest.php @@ -6,7 +6,7 @@ class LinkerTest extends MediaWikiLangTestCase { * @dataProvider provideCasesForUserLink * @covers Linker::userLink */ - function testUserLink( $expected, $userId, $userName, $altUserName = false, $msg = '' ) { + public function testUserLink( $expected, $userId, $userName, $altUserName = false, $msg = '' ) { $this->setMwGlobals( array( 'wgArticlePath' => '/wiki/$1', 'wgWellFormedXml' => true, @@ -28,38 +28,38 @@ class LinkerTest extends MediaWikiLangTestCase { ### ANONYMOUS USER ######################################## array( - 'JohnDoe', + 'JohnDoe', 0, 'JohnDoe', false, ), array( - '::1', + '::1', 0, '::1', false, 'Anonymous with pretty IPv6' ), array( - '::1', + '::1', 0, '0:0:0:0:0:0:0:1', false, 'Anonymous with almost pretty IPv6' ), array( - '::1', + '::1', 0, '0000:0000:0000:0000:0000:0000:0000:0001', false, 'Anonymous with full IPv6' ), array( - 'AlternativeUsername', + 'AlternativeUsername', 0, '::1', 'AlternativeUsername', 'Anonymous with pretty IPv6 and an alternative username' ), # IPV4 array( - '127.0.0.1', + '127.0.0.1', 0, '127.0.0.1', false, 'Anonymous with IPv4' ), array( - 'AlternativeUsername', + 'AlternativeUsername', 0, '127.0.0.1', 'AlternativeUsername', 'Anonymous with IPv4 and an alternative username' ),