diff --git a/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt b/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt index 935518a..a33e380 100644 --- a/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt +++ b/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt @@ -20,7 +20,7 @@ any([ --EXPECTF-- Unhandled promise rejection with React\Promise\Exception\CompositeException: All promises rejected. in %s:%d Stack trace: -#0 %s/src/Promise.php(%d): React\Promise\{closure}(%S) +#0 %s/src/Promise.php(%d): %S{closure%S}(%S) #1 %s/src/Promise.php(%d): React\Promise\Promise->call(%S) #2 %s/src/functions.php(%d): React\Promise\Promise->__construct(%S) #3 %s(%d): React\Promise\any(%S) diff --git a/tests/FunctionRejectTestFinallyThatThrowsNewExceptionShouldReportUnhandledForNewExceptionOnly.phpt b/tests/FunctionRejectTestFinallyThatThrowsNewExceptionShouldReportUnhandledForNewExceptionOnly.phpt index 6e6eaa9..5b228fb 100644 --- a/tests/FunctionRejectTestFinallyThatThrowsNewExceptionShouldReportUnhandledForNewExceptionOnly.phpt +++ b/tests/FunctionRejectTestFinallyThatThrowsNewExceptionShouldReportUnhandledForNewExceptionOnly.phpt @@ -18,8 +18,8 @@ reject(new RuntimeException('foo'))->finally(function (): void { --EXPECTF-- Unhandled promise rejection with RuntimeException: Finally! in %s:%d Stack trace: -#0 %s/src/Internal/RejectedPromise.php(%d): {closure}(%S) -#1 %s/src/Internal/RejectedPromise.php(%d): React\Promise\Internal\RejectedPromise->React\Promise\Internal\{closure}(%S) +#0 %s/src/Internal/RejectedPromise.php(%d): {closure%S}(%S) +#1 %s/src/Internal/RejectedPromise.php(%d): React\Promise\Internal\RejectedPromise->%S{closure%S}(%S) #2 %s/src/Internal/RejectedPromise.php(%d): React\Promise\Internal\RejectedPromise->then(%S) #3 %s(%d): React\Promise\Internal\RejectedPromise->finally(%S) #4 %A{main} diff --git a/tests/FunctionRejectTestThenMatchingThatThrowsNewExceptionShouldReportUnhandledRejectionForNewExceptionOnly.phpt b/tests/FunctionRejectTestThenMatchingThatThrowsNewExceptionShouldReportUnhandledRejectionForNewExceptionOnly.phpt index b6b7f2f..68bcec7 100644 --- a/tests/FunctionRejectTestThenMatchingThatThrowsNewExceptionShouldReportUnhandledRejectionForNewExceptionOnly.phpt +++ b/tests/FunctionRejectTestThenMatchingThatThrowsNewExceptionShouldReportUnhandledRejectionForNewExceptionOnly.phpt @@ -18,6 +18,6 @@ reject(new RuntimeException('foo'))->then(null, function () { --EXPECTF-- Unhandled promise rejection with RuntimeException: bar in %s:%d Stack trace: -#0 %s/src/Internal/RejectedPromise.php(%d): {closure}(%S) +#0 %s/src/Internal/RejectedPromise.php(%d): {closure%S}(%S) #1 %s(%d): React\Promise\Internal\RejectedPromise->then(%S) #2 %A{main} diff --git a/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp8.phpt b/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp8.phpt index bd75cda..aa56786 100644 --- a/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp8.phpt +++ b/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp8.phpt @@ -18,8 +18,8 @@ reject(new RuntimeException('foo'))->then(null, function (UnexpectedValueExcepti ?> --EXPECTF-- -Unhandled promise rejection with TypeError: {closure}(): Argument #1 ($unexpected) must be of type UnexpectedValueException, RuntimeException given, called in %s/src/Internal/RejectedPromise.php on line %d in %s:%d +Unhandled promise rejection with TypeError: {closure%S}(): Argument #1 ($unexpected) must be of type UnexpectedValueException, RuntimeException given, called in %s/src/Internal/RejectedPromise.php on line %d in %s:%d Stack trace: -#0 %s/src/Internal/RejectedPromise.php(%d): {closure}(%S) +#0 %s/src/Internal/RejectedPromise.php(%d): {closure%S}(%S) #1 %s(%d): React\Promise\Internal\RejectedPromise->then(%S) #2 %A{main} diff --git a/tests/FunctionSetRejectionHandlerThatTriggersErrorHandlerThatThrowsShouldTerminateProgramForUnhandled.phpt b/tests/FunctionSetRejectionHandlerThatTriggersErrorHandlerThatThrowsShouldTerminateProgramForUnhandled.phpt index b691039..5ed9687 100644 --- a/tests/FunctionSetRejectionHandlerThatTriggersErrorHandlerThatThrowsShouldTerminateProgramForUnhandled.phpt +++ b/tests/FunctionSetRejectionHandlerThatTriggersErrorHandlerThatThrowsShouldTerminateProgramForUnhandled.phpt @@ -27,9 +27,9 @@ echo 'NEVER'; --EXPECTF-- Fatal error: Uncaught OverflowException from unhandled promise rejection handler: This function should never throw in %s:%d Stack trace: -#0 [internal function]: {closure}(%S) +#0 [internal function]: {closure%S}(%S) #1 %s(%d): trigger_error(%S) -#2 %s/src/Internal/RejectedPromise.php(%d): {closure}(%S) +#2 %s/src/Internal/RejectedPromise.php(%d): {closure%S}(%S) #3 %s/src/functions.php(%d): React\Promise\Internal\RejectedPromise->__destruct() #4 %s(%d): React\Promise\reject(%S) #5 %A{main}