You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
27
vendor/swoole/tests/swoole_event/swoole_event.phpt
vendored
Executable file
27
vendor/swoole/tests/swoole_event/swoole_event.phpt
vendored
Executable file
@ -0,0 +1,27 @@
|
||||
--TEST--
|
||||
swoole_event: swoole_event_exit
|
||||
|
||||
--SKIPIF--
|
||||
<?php require __DIR__ . '/../include/skipif.inc'; ?>
|
||||
--INI--
|
||||
assert.active=1
|
||||
assert.warning=1
|
||||
assert.bail=0
|
||||
assert.quiet_eval=0
|
||||
|
||||
|
||||
--FILE--
|
||||
|
||||
<?php
|
||||
require_once __DIR__ . '/../include/bootstrap.php';
|
||||
|
||||
swoole_timer_tick(1, function() {
|
||||
echo "tick\n";
|
||||
swoole_event_exit();
|
||||
});
|
||||
Swoole\Event::wait();
|
||||
?>
|
||||
--EXPECT--
|
||||
tick
|
||||
|
||||
|
Reference in New Issue
Block a user