X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Futils%2FUIDGeneratorTest.php;h=d335a93ac3d3d3e7d70e8c08e375efe8b8af8d2f;hb=63d96c15fde8d4d2842aa50c5ed2ce594aa0c674;hp=60d4e99978be706a1971ad460e11930f5534509a;hpb=46deecce89b76e2d45e61f5f696928bb859ae324;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/utils/UIDGeneratorTest.php b/tests/phpunit/includes/utils/UIDGeneratorTest.php index 60d4e99978..d335a93ac3 100644 --- a/tests/phpunit/includes/utils/UIDGeneratorTest.php +++ b/tests/phpunit/includes/utils/UIDGeneratorTest.php @@ -1,6 +1,8 @@ assertEquals( true, ctype_digit( $id ), "UID made of digit characters" ); $this->assertLessThanOrEqual( $digitlen, strlen( $id ), "UID has the right number of digits" ); @@ -25,7 +27,7 @@ class UIDGeneratorTest extends PHPUnit_Framework_TestCase { $ids = []; for ( $i = 0; $i < 300; $i++ ) { - $ids[] = call_user_func( [ 'UIDGenerator', $method ] ); + $ids[] = call_user_func( [ UIDGenerator::class, $method ] ); } $lastId = array_shift( $ids ); @@ -45,7 +47,7 @@ class UIDGeneratorTest extends PHPUnit_Framework_TestCase { $last_timestamp_bin, $timestamp_bin, "timestamp ($timestamp_bin) of current ID ($id_bin) >= timestamp ($last_timestamp_bin) " . - "of prior one ($lastId_bin)" ); + "of prior one ($lastId_bin)" ); $hostbits_bin = substr( $id_bin, -$hostbits ); $last_hostbits_bin = substr( $lastId_bin, -$hostbits ); @@ -55,7 +57,7 @@ class UIDGeneratorTest extends PHPUnit_Framework_TestCase { $hostbits_bin, $last_hostbits_bin, "Host ID ($hostbits_bin) of current ID ($id_bin) is same as host ID ($last_hostbits_bin) " . - "of prior one ($lastId_bin)." ); + "of prior one ($lastId_bin)." ); } $lastId = $id;