/** * Tests the collection of a cache miss. */ public function testCacheCollectorMiss() { $this->cacheBackendInterface->expects($this->once())->method('get')->will($this->returnValue(FALSE)); $cacheBackendWrapper = new CacheBackendWrapper($this->cacheDataCollector, $this->cacheBackendInterface, 'default'); $cache = $cacheBackendWrapper->get('cache_id'); $this->assertFalse($cache); $this->assertEquals(1, $this->cacheDataCollector->getCacheMissesCount()); }