You are here

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

assert that trying to rename from a non existing file trigger a warning

@expectedException PHPUnit_Framework_Error @test

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function renameOnSourceFileNotFound() {
  rename(vfsStream::url('notfound'), $this->baz1URL);
}