remove() 공개 메소드

또한 보기: Storage::remove()
public remove ( $id )
예제 #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'));
 }