public function CacheTest::testGetStats

@group DCOM-43

4 methods override CacheTest::testGetStats()
ArrayCacheTest::testGetStats in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/ArrayCacheTest.php
@group DCOM-43
FilesystemCacheTest::testGetStats in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/FilesystemCacheTest.php
@group DCOM-43
PhpFileCacheTest::testGetStats in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php
@group DCOM-43
ZendDataCacheTest::testGetStats in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/ZendDataCacheTest.php
@group DCOM-43

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/CacheTest.php, line 75

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_AVAILIABLE, $stats);
}