1--TEST--
2Observer: Throwing fiber
3--EXTENSIONS--
4zend_test
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.show_output=1
8zend_test.observer.fiber_switch=1
9--FILE--
10<?php
11
12$fiber = new Fiber(function (): void {
13    Fiber::suspend();
14});
15
16$fiber->start();
17
18try {
19    $fiber->throw(new Exception);
20} catch (Exception $exception) {
21
22}
23
24?>
25--EXPECTF--
26<!-- init '%sobserver_fiber_06.php' -->
27<!-- switching from fiber %s to %s -->
28<init '%s'>
29<!-- init {closure}() -->
30<!-- switching from fiber %s to %s -->
31<suspend '%s'>
32<!-- switching from fiber %s to %s -->
33<resume '%s'>
34<!-- switching from fiber %s to %s -->
35<threw '%s'>
36