You are here

public function vfsStreamWrapperMkDirTestCase::mkDirShouldNotOverwriteExistingFilesAndTriggerE_USER_WARNING in Zircon Profile 8

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

@test @group issue_28 @expectedException PHPUnit_Framework_Error @expectedExceptionMessage mkdir(): Path vfs://root/test.txt exists

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php, line 245

Class

vfsStreamWrapperMkDirTestCase
Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().

Namespace

org\bovigo\vfs

Code

public function mkDirShouldNotOverwriteExistingFilesAndTriggerE_USER_WARNING() {
  $root = vfsStream::setup('root');
  vfsStream::newFile('test.txt')
    ->at($root);
  $this
    ->assertFalse(mkdir(vfsStream::url('root/test.txt')));
}