Skip to content

Commit 5e9d05b

Browse files
committed
Fix test: remove regular fiber check - all fibers have coroutines
1 parent 5d54ea0 commit 5e9d05b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/fiber/019-fiber_getCoroutine.phpt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,11 @@ $c = spawn(function() {
2525

2626
await($c);
2727

28-
// Test without coroutine (regular fiber)
29-
$f = new Fiber(function() {
30-
Fiber::suspend();
31-
});
32-
33-
$f->start();
34-
35-
$coro = $f->getCoroutine();
36-
echo "Regular fiber: " . ($coro === null ? "null" : "not-null") . "\n";
37-
38-
$f->resume();
39-
4028
echo "OK\n";
4129
?>
4230
--EXPECT--
4331
Has coroutine: yes
4432
Has ID: yes
4533
Is started: yes
4634
Is suspended: yes
47-
Regular fiber: null
4835
OK

0 commit comments

Comments
 (0)