1--TEST--
2Fiber interaction with custom fiber implementation 2
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7$test = new _ZendTestFiber(function (): void {
8    $fiber = new Fiber(function (): int {
9        $value = _ZendTestFiber::suspend(1);
10        var_dump($value); // int(2)
11        return $value;
12    });
13    $fiber->start();
14});
15var_dump($test->start()); // int(1)
16var_dump($test->resume(2)); // NULL
17
18?>
19--EXPECT--
20int(1)
21int(2)
22NULL
23