You are here

public function vfsStreamTestCase::url in Zircon Profile 8

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

assure that path2url conversion works correct

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php, line 29

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function url() {
  $this
    ->assertEquals('vfs://foo', vfsStream::url('foo'));
  $this
    ->assertEquals('vfs://foo/bar.baz', vfsStream::url('foo/bar.baz'));
  $this
    ->assertEquals('vfs://foo/bar.baz', vfsStream::url('foo\\bar.baz'));
}