X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FGlobalFunctions%2FGlobalTest.php;h=1210a507db05fe8a3177ad0afcb5bc7e0c30ecee;hb=a3cd158d8433e41cbeb299f0e268dfef363b2afd;hp=9443b19e06a7ab0c7a359473c3a7cd8017ec1021;hpb=7621b57d958d0753236221227cbfb519d7faf192;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php index 9443b19e06..1210a507db 100644 --- a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php +++ b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php @@ -74,12 +74,8 @@ class GlobalTest extends MediaWikiTestCase { $this->assertFalse( wfRandomString() == wfRandomString() ); - $this->assertEquals( - strlen( wfRandomString( 10 ) ), 10 - ); - $this->assertTrue( - preg_match( '/^[0-9a-f]+$/i', wfRandomString() ) === 1 - ); + $this->assertSame( 10, strlen( wfRandomString( 10 ) ), 'length' ); + $this->assertSame( 1, preg_match( '/^[0-9a-f]+$/i', wfRandomString() ), 'pattern' ); } /**