ext-uv/tests/310-fs-mkdir.phpt

17 lines
317 B
Plaintext
Raw Normal View History

2012-07-03 16:10:05 +02:00
--TEST--
Check for fs mkdir
--FILE--
<?php
define("DIRECTORY_PATH", dirname(__FILE__) . "/fixtures/example_directory");
2012-07-04 02:40:06 +02:00
@rmdir(DIRECTORY_PATH);
2015-01-18 02:58:40 +01:00
uv_fs_mkdir(uv_default_loop(), DIRECTORY_PATH, 0755, function($result) {
2012-07-03 16:10:05 +02:00
echo $result . PHP_EOL;
rmdir(DIRECTORY_PATH);
});
uv_run();
2015-01-18 02:58:40 +01:00
--EXPECTF--
Resource id #%d