qlg.tsgz.moe/vendor/swoole/tests/swoole_process/swoole_process_pop.phpt
2019-09-06 23:53:10 +08:00

24 lines
474 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--TEST--
swoole_process: pop
--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';
// TODO 难道 queue不应该做成一个独立的组件放在proc对象上啥意思
$proc = new \swoole_process(function() { });
$proc->useQueue();
$proc->push("SUCCESS");
echo $proc->pop();
$proc->freeQueue();
?>
--EXPECT--
SUCCESS