You are here

public function vfsStreamTestCase::pathRemovesDoubleSlashes in Zircon Profile 8.0

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

double slashes should be replaced by single slash

@author Gabriel Birke @test

File

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

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function pathRemovesDoubleSlashes() {

  // Regular path
  $this
    ->assertEquals('my/path', vfsStream::path('vfs://my/path'));

  // Path with double slashes
  $this
    ->assertEquals('my/path', vfsStream::path('vfs://my//path'));
}