/** * Verifies that a cache miss returns NULL. */ public function testEmptyItem() { $pool = new MemoryPool(); $this->assertFalse($pool->hasItem('foo')); $item = $pool->getItem('foo'); $this->assertNull($item->get()); $this->assertFalse($item->isHit()); }