You are here

public function vfsStreamWrapperTestCase::renameDirectoryOverwritingExistingFile in Zircon Profile 8

Same name and namespace in other branches
  1. 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

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

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);
}