You are here

public function vfsStreamWrapperDirSeparatorTestCase::directoryCanBeCreatedUsingWinDirSeparator in Zircon Profile 8

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

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirSeparatorTestCase.php, line 49

Class

vfsStreamWrapperDirSeparatorTestCase
Test that using windows directory separator works correct.

Namespace

org\bovigo\vfs

Code

public function directoryCanBeCreatedUsingWinDirSeparator() {
  mkdir('vfs://root/dir\\bar\\foo', true, 0777);
  $this
    ->assertTrue($this->root
    ->hasChild('dir'));
  $this
    ->assertTrue($this->root
    ->getChild('dir')
    ->hasChild('bar'));
  $this
    ->assertTrue($this->root
    ->getChild('dir/bar')
    ->hasChild('foo'));
}