You are here

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

assert basename() returns correct file name

@test

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function basename() {
  $this
    ->assertEquals('bar', basename($this->barURL));
  $this
    ->assertEquals('baz1', basename($this->baz1URL));
  $this
    ->assertEquals('doesNotExist', basename(vfsStream::url('doesNotExist')));
}