You are here

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

@test @group issue_34 @since 1.2.0

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function urlIsUpdatedAfterMove() {

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