You are here

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

assert dirname() returns correct directory name

@test

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function dirname() {
  $this
    ->assertEquals($this->fooURL, dirname($this->barURL));
  $this
    ->assertEquals($this->barURL, dirname($this->baz1URL));

  # returns "vfs:" instead of "."

  # however this seems not to be fixable because dirname() does not

  # call the stream wrapper

  #$this->assertEquals(dirname(vfsStream::url('doesNotExist')), '.');
}