ext-uv/tests/100-uv_async.phpt

17 lines
218 B
Plaintext
Raw Normal View History

2012-07-07 15:02:57 +02:00
--TEST--
Check for uv_async
--FILE--
<?php
$loop = uv_default_loop();
2015-01-18 02:58:40 +01:00
$async = uv_async_init($loop, function($async) {
2012-07-07 15:02:57 +02:00
echo "Hello";
uv_close($async);
});
uv_async_send($async);
uv_run();
2015-01-18 02:58:40 +01:00
?>
2012-07-07 15:02:57 +02:00
--EXPECT--
Hello