public function testStats() { $collector = new CacheDataCollector(); $this->assertEquals(array(), $collector->getStatsForKey(null)); $key = $collector->getRequest()->getPathInfo(); $collector->setData(array($key => array('test'))); $this->assertArrayHasKey($key, $collector->getStats()); $this->assertNotEmpty($collector->getStatsForKey($key)); }