Use try to avoid deadlock in getExecuted phpt
@@ -76,11 +76,14 @@ foreach ([
$callable(true);
});
[$line, $file, $function] = $remote_coro->resume();
+ try {
Assert::same($remote_coro->getExecutedFunctionName(1), $function);
Assert::same($remote_coro->getExecutedFilename(1), $file);
Assert::same($remote_coro->getExecutedLineno(1), $line);
+ } finally {
$remote_coro->resume();
}
+}
register_shutdown_function($closure);
register_tick_function($closure);
