You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$additionalInfo = "\r\n\r\nSet AMP_DEBUG_TRACE_WATCHERS=true as environment variable to trace watchers keeping the loop running.";
145
+
$additionalInfo.= "\r\n\r\nSet AMP_DEBUG_TRACE_WATCHERS=true as environment variable to trace watchers keeping the loop running.";
121
146
} else {
122
-
$additionalInfo = "\r\n\r\nInstall amphp/amp@^2.3 and set AMP_DEBUG_TRACE_WATCHERS=true as environment variable to trace watchers keeping the loop running. ";
147
+
$additionalInfo.= "\r\n\r\nInstall amphp/amp@^2.3 and set AMP_DEBUG_TRACE_WATCHERS=true as environment variable to trace watchers keeping the loop running. ";
123
148
}
124
149
125
150
$this->fail('Expected test to complete before ' . $timeout . 'ms time limit' . $additionalInfo);
@@ -130,7 +155,7 @@ final protected function setTimeout(int $timeout)
130
155
131
156
/**
132
157
* @param int $invocationCount Number of times the callback must be invoked or the test will fail.
133
-
* @param callable|null $returnCallback Callable providing a return value for the callback.
158
+
* @param callable|null $returnCallback Callable providing a return value for the callback.
134
159
*
135
160
* @return callable|MockObject Mock object having only an __invoke method.
136
161
*/
@@ -146,4 +171,39 @@ final protected function createCallback(int $invocationCount, callable $returnCa
146
171
147
172
return$mock;
148
173
}
174
+
175
+
/**
176
+
* Specialized Amp\call that stores the generator if present for debugging purposes.
0 commit comments