You are here

public function vfsStreamWrapperFileTestCase::is_file in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php \org\bovigo\vfs\vfsStreamWrapperFileTestCase::is_file()

assert is_file() returns correct result

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php, line 146

Class

vfsStreamWrapperFileTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function is_file() {
  $this
    ->assertFalse(is_file($this->fooURL));
  $this
    ->assertFalse(is_file($this->barURL));
  $this
    ->assertTrue(is_file($this->baz1URL));
  $this
    ->assertTrue(is_file($this->baz2URL));
  $this
    ->assertFalse(is_file($this->fooURL . '/another'));
  $this
    ->assertFalse(is_file(vfsStream::url('another')));
}