public function FilesystemCacheTest::testGetStats in Plug 7
@group DCOM-43
Overrides CacheTest::testGetStats
File
- lib/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ FilesystemCacheTest.php, line 59
Class
- FilesystemCacheTest
- @group DCOM-101
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
->assertNull($stats[Cache::STATS_UPTIME]);
$this
->assertEquals(0, $stats[Cache::STATS_MEMORY_USAGE]);
$this
->assertGreaterThan(0, $stats[Cache::STATS_MEMORY_AVAILABLE]);
}