You are here

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

@test @group issue_9 @since 0.9.0

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function renameDirectoryWithDotsInTarget() {

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