ext-uv/tests/003-uv_write_different-callbacks.phpt

17 lines
394 B
Plaintext
Raw Normal View History

2017-02-19 20:06:31 +01:00
--TEST--
Check for uv_write multiple call with different callbacks
--FILE--
<?php
$loop = uv_loop_new();
$handler = uv_pipe_init($loop, false);
2017-02-20 21:12:06 +01:00
uv_pipe_open($handler, (int) STDOUT);
2017-02-19 20:06:31 +01:00
uv_write($handler, 'A', function () { echo 'A'; });
uv_write($handler, 'B', function () { echo 'B'; });
uv_write($handler, 'C', function () { echo 'C'; });
uv_run($loop);
uv_close($handler);
--EXPECTF--
ABCABC