mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-27 04:24:45 +01:00
15 lines
245 B
PHP
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 |