We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c06e9 commit 24d3a14Copy full SHA for 24d3a14
co-phpunit
@@ -2,7 +2,10 @@
2
<?php
3
4
$code = 0;
5
-\Swoole\Coroutine::create(function () use (&$code) {
+Swoole\Coroutine::set(['exit_condition' => function(){
6
+ return Swoole\Coroutine::stats()['coroutine_num'] === 0;
7
+}]);
8
+Swoole\Coroutine::create(function () use (&$code) {
9
if (version_compare('7.1.0', PHP_VERSION, '>')) {
10
fwrite(
11
STDERR,
@@ -60,6 +63,8 @@ $code = 0;
60
63
require PHPUNIT_COMPOSER_INSTALL;
61
64
62
65
$code = PHPUnit\TextUI\Command::main(false);
66
+
67
+ Swoole\Timer::clearAll();
68
});
69
70
swoole_event_wait();
0 commit comments