This method is called in response to rename().
Should attempt to rename path_from to path_to.
Note: In order for the appropriate error message to be returned this
method should not be defined if the wrapper does not support creating
directories.
/** * @test */ public function renameTest() { $fromPath = 'mockScheme1://foo/bar'; $toPath = 'mockScheme1://foo/baz'; $this->streamWrapperAdapter->expects($this->once())->method('createStreamWrapper')->with($fromPath); $this->mockStreamWrapper->expects($this->once())->method('rename')->with($fromPath, $toPath)->will($this->returnValue(true)); $this->assertTrue($this->streamWrapperAdapter->rename($fromPath, $toPath)); }