You are here

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

@test @expectedException PHPUnit_Framework_Error

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function renameFileIntoFile() {

  // foo/baz2 is a file, so it can not be turned into a directory
  $baz3URL = vfsStream::url('foo/baz2/baz3');
  $this
    ->assertTrue(rename($this->baz1URL, $baz3URL));
  $this
    ->assertFileExists($baz3URL);
  $this
    ->assertFileNotExists($this->baz1URL);
}