xref: /PHP-8.2/Zend/tests/fibers/resume.phpt (revision c276c16b)
1--TEST--
2Test resume
3--FILE--
4<?php
5
6$fiber = new Fiber(function (): void {
7    $value = Fiber::suspend(1);
8    var_dump($value);
9});
10
11$value = $fiber->start();
12var_dump($value);
13$fiber->resume($value + 1);
14
15?>
16--EXPECT--
17int(1)
18int(2)
19