public function testCheckEmptyDirectory() { $tmp = sys_get_temp_dir() . '/stash/'; $dir2 = $tmp . 'emptytest/'; @mkdir($dir2, 0770, true); $this->assertTrue(Utilities::checkForEmptyDirectory($dir2), 'Returns true for empty directories'); $this->assertFalse(Utilities::checkForEmptyDirectory($tmp), 'Returns false for non-empty directories'); Utilities::deleteRecursive($tmp); }