You are here

public function CacheTest::testGetStats in Plug 7

@group DCOM-43

8 methods override CacheTest::testGetStats()
ArrayCacheTest::testGetStats in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ArrayCacheTest.php
@group DCOM-43
ChainCacheTest::testGetStats in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ChainCacheTest.php
@group DCOM-43
FilesystemCacheTest::testGetStats in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/FilesystemCacheTest.php
@group DCOM-43
MongoDBCacheTest::testGetStats in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MongoDBCacheTest.php
@group DCOM-43
PhpFileCacheTest::testGetStats in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php
@group DCOM-43

... See full list

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php, line 252

Class

CacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testGetStats() {
  $cache = $this
    ->_getCacheDriver();
  $stats = $cache
    ->getStats();
  $this
    ->assertArrayHasKey(Cache::STATS_HITS, $stats);
  $this
    ->assertArrayHasKey(Cache::STATS_MISSES, $stats);
  $this
    ->assertArrayHasKey(Cache::STATS_UPTIME, $stats);
  $this
    ->assertArrayHasKey(Cache::STATS_MEMORY_USAGE, $stats);
  $this
    ->assertArrayHasKey(Cache::STATS_MEMORY_AVAILABLE, $stats);
}