xref: /php-uv/tests/010-uv_loop_new.phpt (revision 59f74ea0)
1--TEST--
2Check to make sure uv_loop_new can be used
3--SKIPIF--
4<?php if(!extension_loaded("uv")) print "skip"; ?>
5--FILE--
6<?php
7$loop = uv_loop_new();
8$async = uv_async_init($loop, function($async) {
9    echo "Hello";
10    uv_close($async);
11});
12uv_async_send($async);
13uv_run($loop);
14--EXPECT--
15Hello
16