mirror of
https://github.com/danog/ext-uv.git
synced 2024-12-12 09:09:42 +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 |