public function vfsStreamWrapperTestCase::file_exists in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php \org\bovigo\vfs\vfsStreamWrapperTestCase::file_exists()
assert that file_exists() delivers correct result
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperTestCase.php, line 62
Class
Namespace
org\bovigo\vfsCode
public function file_exists() {
$this
->assertTrue(file_exists($this->fooURL));
$this
->assertTrue(file_exists($this->fooURL . '/.'));
$this
->assertTrue(file_exists($this->barURL));
$this
->assertTrue(file_exists($this->barURL . '/.'));
$this
->assertTrue(file_exists($this->baz1URL));
$this
->assertTrue(file_exists($this->baz2URL));
$this
->assertFalse(file_exists($this->fooURL . '/another'));
$this
->assertFalse(file_exists(vfsStream::url('another')));
}