You are here

public function vfsStreamWrapperMkDirTestCase::is_dir in Zircon Profile 8

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

assert is_dir() returns correct result

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php, line 270

Class

vfsStreamWrapperMkDirTestCase
Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().

Namespace

org\bovigo\vfs

Code

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