ext-uv/tests/999-uv_chdir.phpt
Shuhei Tanuma 9a0624ecfc fix uv_cwd
2012-06-25 13:05:42 +09:00

15 lines
245 B
PHP

--TEST--
Check for uv_chdir
--FILE--
<?php
@uv_chdir(); // don't SEGV
uv_chdir(dirname(__FILE__));
if (uv_cwd() == dirname(__FILE__)) {
echo "OK";
} else {
echo "FAILED: expected " . dirname(__FILE__) . ", but " . uv_cwd();
}
--EXPECT--
OK