Skip to content

Commit 14c9a5a

Browse files
committed
Fixup tests
1 parent 42fbfad commit 14c9a5a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Zend/tests/fibers/fatal-error-with-multiple-fibers.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $fiber1 = new Fiber(function (): void {
77
try {
88
\Fiber::suspend(1);
99
} finally {
10-
echo "not executed";
10+
echo "executed";
1111
}
1212
});
1313

@@ -28,3 +28,4 @@ int(2)
2828
Deprecated: Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead in %s on line %d
2929

3030
Fatal error: Fatal error in fiber in %sfatal-error-with-multiple-fibers.php on line %d
31+
executed

ext/zend_test/tests/observer_fiber_functions_03.phpt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,12 @@ Fatal error: Allowed memory size of 104857600 bytes exhausted %s on line %d
8787
<!-- destroy: %s -->
8888
</Fiber::resume>
8989
</file '%s'>
90+
<!-- switching from fiber %s to %s -->
91+
<destroying '%s'>
92+
<!-- Exception: GracefulExit -->
93+
</Fiber::suspend>
94+
<!-- Exception: GracefulExit -->
95+
</{closure:%s:%d}>
96+
<!-- switching from fiber %s to %s -->
97+
<destroyed '%s'>
98+
<!-- destroy: %s -->

0 commit comments

Comments
 (0)