This method is called in response to unlink().
Note: In order for the appropriate error message to be returned this
method should not be defined if the wrapper does not support removing
files.
/** * @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)); }