/** * @test */ public function delegatesTouchItem() { $this->storage->touchItem('key')->willReturn(true); $return = $this->cache->touchItem('key'); $this->assertTrue($return); }
public function testTouchItemReturnsFalseIfNonWritable() { $this->_options->setWritable(false); $this->assertFalse($this->_storage->touchItem('key')); }
public function touchItem($key) { return $this->storage->touchItem($key); }