You are here

public function vfsStreamWrapperTestCase::renameFileToDirectory 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::renameFileToDirectory()

@test @author Benoit Aubuchon

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php, line 456

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function renameFileToDirectory() {

  // move foo/bar/baz1 to foo/baz3
  $baz3URL = vfsStream::url('foo/baz3');
  $this
    ->assertTrue(rename($this->baz1URL, $baz3URL));
  $this
    ->assertFileExists($this->barURL);
  $this
    ->assertFileExists($baz3URL);
  $this
    ->assertFileNotExists($this->baz1URL);
}