ext-uv/tests/311-fs-rmdir.phpt

17 lines
303 B
PHP

--TEST--
Check for fs rmdir
--FILE--
<?php
define("DIRECTORY_PATH", dirname(__FILE__) . "/fixtures/example_directory");
@rmdir(DIRECTORY_PATH);
mkdir(DIRECTORY_PATH, 0755);
uv_fs_rmdir(uv_default_loop(), DIRECTORY_PATH, function($result) {
var_dump($result);
});
uv_run();
--EXPECTF--
bool(true)