public function unlink($path)
{
$this->createStreamWrapper($path);
return $this->streamWrapper->unlink($path);
}
/** * @test */ public function unlinkTest() { $path = 'mockScheme1://foo/bar'; $this->streamWrapperAdapter->expects($this->once())->method('createStreamWrapper')->with($path); $this->mockStreamWrapper->expects($this->once())->method('unlink')->with($path)->will($this->returnValue(true)); $this->assertTrue($this->streamWrapperAdapter->unlink($path)); }