You are here

public function FilesystemCacheTest::testGetStats in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/FilesystemCacheTest.php \Doctrine\Tests\Common\Cache\FilesystemCacheTest::testGetStats()

@group DCOM-43

Overrides CacheTest::testGetStats

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/FilesystemCacheTest.php, line 59

Class

FilesystemCacheTest
@group DCOM-101

Namespace

Doctrine\Tests\Common\Cache

Code

public function testGetStats() {
  $cache = $this
    ->_getCacheDriver();
  $stats = $cache
    ->getStats();
  $this
    ->assertNull($stats[Cache::STATS_HITS]);
  $this
    ->assertNull($stats[Cache::STATS_MISSES]);
  $this
    ->assertNull($stats[Cache::STATS_UPTIME]);
  $this
    ->assertEquals(0, $stats[Cache::STATS_MEMORY_USAGE]);
  $this
    ->assertGreaterThan(0, $stats[Cache::STATS_MEMORY_AVAILABLE]);
}