1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 18 Nov 2023 15:34:00 +0100
Subject: =?utf-8?q?Don=E2=80=99t_expect_src/_in_test_output?=
---
tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt | 6 +++---
...tThrowsNewExceptionShouldReportUnhandledForNewExceptionOnly.phpt | 6 +++---
...wExceptionShouldReportUnhandledRejectionForNewExceptionOnly.phpt | 2 +-
...rowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp7.phpt | 4 ++--
...rowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp8.phpt | 4 ++--
...ersErrorHandlerThatThrowsShouldTerminateProgramForUnhandled.phpt | 4 ++--
6 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt b/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt
index a33e380..cb5e135 100644
--- a/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt
+++ b/tests/FunctionAnyTestRejectedShouldReportUnhandled.phpt
@@ -20,9 +20,9 @@ any([
--EXPECTF--
Unhandled promise rejection with React\Promise\Exception\CompositeException: All promises rejected. in %s:%d
Stack trace:
-#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)
+#0 %s/Promise.php(%d): %S{closure%S}(%S)
+#1 %s/Promise.php(%d): React\Promise\Promise->call(%S)
+#2 %s/functions.php(%d): React\Promise\Promise->__construct(%S)
#3 %s(%d): React\Promise\any(%S)
#4 %A{main}
diff --git a/tests/FunctionRejectTestFinallyThatThrowsNewExceptionShouldReportUnhandledForNewExceptionOnly.phpt b/tests/FunctionRejectTestFinallyThatThrowsNewExceptionShouldReportUnhandledForNewExceptionOnly.phpt
index 5b228fb..a3586c3 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}(%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)
+#0 %s/Internal/RejectedPromise.php(%d): {closure%S}(%S)
+#1 %s/Internal/RejectedPromise.php(%d): React\Promise\Internal\RejectedPromise->%S{closure%S}(%S)
+#2 %s/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 68bcec7..093dfa5 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}(%S)
+#0 %s/Internal/RejectedPromise.php(%d): {closure%S}(%S)
#1 %s(%d): React\Promise\Internal\RejectedPromise->then(%S)
#2 %A{main}
diff --git a/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp7.phpt b/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp7.phpt
index bbf01c4..1773e7f 100644
--- a/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp7.phpt
+++ b/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp7.phpt
@@ -18,8 +18,8 @@ reject(new RuntimeException('foo'))->then(null, function (UnexpectedValueExcepti
?>
--EXPECTF--
-Unhandled promise rejection with TypeError: Argument 1 passed to {closure}() must be an instance of UnexpectedValueException, instance of RuntimeException given, called in %s/src/Internal/RejectedPromise.php on line %d and defined in %s:%d
+Unhandled promise rejection with TypeError: Argument 1 passed to {closure}() must be an instance of UnexpectedValueException, instance of RuntimeException given, called in %s/Internal/RejectedPromise.php on line %d and defined in %s:%d
Stack trace:
-#0 %s/src/Internal/RejectedPromise.php(%d): {closure}(%S)
+#0 %s/Internal/RejectedPromise.php(%d): {closure}(%S)
#1 %s(%d): React\Promise\Internal\RejectedPromise->then(%S)
#2 %A{main}
diff --git a/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp8.phpt b/tests/FunctionRejectTestThenMismatchThrowsTypeErrorAndShouldReportUnhandledForTypeErrorOnlyOnPhp8.phpt
index 698f7ec..8b3bc5f 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%S}(): Argument #1 ($unexpected) must be of type UnexpectedValueException, RuntimeException given, called in %s/src/Internal/RejectedPromise.php on line %d and defined in %s:%d
+Unhandled promise rejection with TypeError: {closure%S}(): Argument #1 ($unexpected) must be of type UnexpectedValueException, RuntimeException given, called in %s/Internal/RejectedPromise.php on line %d and defined in %s:%d
Stack trace:
-#0 %s/src/Internal/RejectedPromise.php(%d): {closure%S}(%S)
+#0 %s/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 5ed9687..2970efe 100644
--- a/tests/FunctionSetRejectionHandlerThatTriggersErrorHandlerThatThrowsShouldTerminateProgramForUnhandled.phpt
+++ b/tests/FunctionSetRejectionHandlerThatTriggersErrorHandlerThatThrowsShouldTerminateProgramForUnhandled.phpt
@@ -29,7 +29,7 @@ Fatal error: Uncaught OverflowException from unhandled promise rejection handler
Stack trace:
#0 [internal function]: {closure%S}(%S)
#1 %s(%d): trigger_error(%S)
-#2 %s/src/Internal/RejectedPromise.php(%d): {closure%S}(%S)
-#3 %s/src/functions.php(%d): React\Promise\Internal\RejectedPromise->__destruct()
+#2 %s/Internal/RejectedPromise.php(%d): {closure%S}(%S)
+#3 %s/functions.php(%d): React\Promise\Internal\RejectedPromise->__destruct()
#4 %s(%d): React\Promise\reject(%S)
#5 %A{main}
|