X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FProcessCacheLRUTest.php;h=8e91e70cb0cd34153860ef221e0356105e3b7855;hb=52253ec10a1eb9579bf14f3922a8988d167b27e7;hp=ddb7bfad78be34a2bd8672a975f478740eb245e7;hpb=095a2a05b2aaccff26d7b871194a4edccd092707;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/ProcessCacheLRUTest.php b/tests/phpunit/includes/libs/ProcessCacheLRUTest.php index ddb7bfad78..8e91e70cb0 100644 --- a/tests/phpunit/includes/libs/ProcessCacheLRUTest.php +++ b/tests/phpunit/includes/libs/ProcessCacheLRUTest.php @@ -1,15 +1,13 @@ assertAttributeEquals( [], 'cache', $cache, $msg ); + $this->assertEquals( 0, $cache->getEntriesCount(), $msg ); } /** @@ -256,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() ); } }