remove() public method

See also: Storage::remove()
public remove ( $id )
Esempio n. 1
0
 public function testRemove()
 {
     $storage = new FileStorage('somewhere');
     self::$functions->expects($this->at(0))->method('file_exists')->with($this->equalTo('somewhere' . DIRECTORY_SEPARATOR . 'mykey'))->will($this->returnValue(true));
     self::$functions->expects($this->at(1))->method('unlink')->with($this->equalTo('somewhere' . DIRECTORY_SEPARATOR . 'mykey'))->will($this->returnValue(true));
     $this->assertTrue($storage->remove('mykey'));
 }