xref: /php-uv/tests/100-uv_prepare.phpt (revision 4332fe7a)
1--TEST--
2Check for uv_prepare
3--FILE--
4<?php
5$loop = uv_default_loop();
6$prepare = uv_prepare_init($loop);
7
8uv_prepare_start($prepare, function($rsc) {
9    echo "Hello";
10    uv_unref($rsc);
11});
12
13uv_run();
14--EXPECT--
15Hello
16