public function vfsStreamTestCase::pathRemovesDoubleSlashes in Zircon Profile 8.0
Same name and namespace in other branches
- 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\vfsCode
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'));
}