public function vfsStreamWrapperTestCase::renameDirectoryOverwritingExistingFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php \org\bovigo\vfs\vfsStreamWrapperTestCase::renameDirectoryOverwritingExistingFile()
@test @author Benoit Aubuchon
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperTestCase.php, line 431
Class
Namespace
org\bovigo\vfsCode
public function renameDirectoryOverwritingExistingFile() {
// move foo/bar to foo/baz2
$this
->assertTrue(rename($this->barURL, $this->baz2URL));
$this
->assertFileExists(vfsStream::url('foo/baz2/baz1'));
$this
->assertFileNotExists($this->barURL);
}