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