ext-uv/tests/100-uv_prepare.phpt

16 lines
222 B
Plaintext
Raw Normal View History

--TEST--
Check for uv_prepare
--FILE--
<?php
$loop = uv_default_loop();
$prepare = uv_prepare_init($loop);
2015-01-18 02:58:40 +01:00
uv_prepare_start($prepare, function($rsc) {
echo "Hello";
uv_unref($rsc);
});
uv_run();
--EXPECT--
Hello