public function MongoDBCacheTest::testGetStats in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MongoDBCacheTest.php \Doctrine\Tests\Common\Cache\MongoDBCacheTest::testGetStats()
@group DCOM-43
Overrides CacheTest::testGetStats
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ MongoDBCacheTest.php, line 45
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function testGetStats() {
$cache = $this
->_getCacheDriver();
$stats = $cache
->getStats();
$this
->assertNull($stats[Cache::STATS_HITS]);
$this
->assertNull($stats[Cache::STATS_MISSES]);
$this
->assertGreaterThan(0, $stats[Cache::STATS_UPTIME]);
$this
->assertEquals(0, $stats[Cache::STATS_MEMORY_USAGE]);
$this
->assertNull($stats[Cache::STATS_MEMORY_AVAILABLE]);
}