X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FProcessCacheLRUTest.php;h=8e91e70cb0cd34153860ef221e0356105e3b7855;hb=52253ec10a1eb9579bf14f3922a8988d167b27e7;hp=9c189d12930a933e2fd635ffaf77ac0aab8ca8ec;hpb=75dc9d521e285360579ce9be7d2c9d570852b51c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/ProcessCacheLRUTest.php b/tests/phpunit/includes/libs/ProcessCacheLRUTest.php index 9c189d1293..8e91e70cb0 100644 --- a/tests/phpunit/includes/libs/ProcessCacheLRUTest.php +++ b/tests/phpunit/includes/libs/ProcessCacheLRUTest.php @@ -1,22 +1,22 @@ assertAttributeEquals( [], 'cache', $cache, $msg ); + $this->assertEquals( 0, $cache->getEntriesCount(), $msg ); } /** @@ -58,6 +58,7 @@ class ProcessCacheLRUTest extends PHPUnit_Framework_TestCase { /** * Highlight diff between assertEquals and assertNotSame + * @coversNothing */ public function testPhpUnitArrayEquality() { $one = [ 'A' => 1, 'B' => 2 ]; @@ -253,13 +254,11 @@ class ProcessCacheLRUTest extends PHPUnit_Framework_TestCase { * Overrides some ProcessCacheLRU methods and properties accessibility. */ class ProcessCacheLRUTestable extends ProcessCacheLRU { - public $cache = []; - public function getCache() { - return $this->cache; + return $this->cache->toArray(); } public function getEntriesCount() { - return count( $this->cache ); + return count( $this->cache->toArray() ); } }