public function CacheTest::testGetStats in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php \Doctrine\Tests\Common\Cache\CacheTest::testGetStats()
@group DCOM-43
8 methods override CacheTest::testGetStats()
- ArrayCacheTest::testGetStats in vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ ArrayCacheTest.php - @group DCOM-43
- ChainCacheTest::testGetStats in vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ ChainCacheTest.php - @group DCOM-43
- FilesystemCacheTest::testGetStats in vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ FilesystemCacheTest.php - @group DCOM-43
- MongoDBCacheTest::testGetStats in vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ MongoDBCacheTest.php - @group DCOM-43
- PhpFileCacheTest::testGetStats in vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ PhpFileCacheTest.php - @group DCOM-43
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ CacheTest.php, line 254
Class
Namespace
Doctrine\Tests\Common\CacheCode
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);
}