You are here

public function vfsStreamWrapperMkDirTestCase::rmdirCanRemoveEmptyDirectoryWithDot in Zircon Profile 8.0

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

@test

File

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

Class

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

Namespace

org\bovigo\vfs

Code

public function rmdirCanRemoveEmptyDirectoryWithDot() {
  vfsStream::newDirectory('empty')
    ->at($this->foo);
  $this
    ->assertTrue($this->foo
    ->hasChild('empty'));
  $this
    ->assertTrue(rmdir($this->fooURL . '/empty/.'));
  $this
    ->assertFalse($this->foo
    ->hasChild('empty'));
}