You are here

public function vfsStreamWrapperMkDirTestCase::rmdirCanRemoveEmptyRoot 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::rmdirCanRemoveEmptyRoot()

rmdir() can remove empty directories

@test

File

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

Class

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

Namespace

org\bovigo\vfs

Code

public function rmdirCanRemoveEmptyRoot() {
  $this->foo
    ->removeChild('bar');
  $this->foo
    ->removeChild('baz2');
  $this
    ->assertTrue(rmdir($this->fooURL));
  $this
    ->assertFalse(file_exists($this->fooURL));

  // make sure statcache was cleared
  $this
    ->assertNull(vfsStreamWrapper::getRoot());
}