We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f2775c commit 6ac6bc4Copy full SHA for 6ac6bc4
src/Framework/TestCase.php
@@ -1268,6 +1268,13 @@ private function runTest(): mixed
1268
print preg_replace('/\[.+\] /', '', $errorLogOutput);
1269
}
1270
} catch (Throwable $exception) {
1271
+ if (!$this->expectErrorLog) {
1272
+ $errorLogOutput = stream_get_contents($capture);
1273
+
1274
+ // strip date from logged error, see https://github.com/php/php-src/blob/c696087e323263e941774ebbf902ac249774ec9f/main/main.c#L905
1275
+ print preg_replace('/\[.+\] /', '', $errorLogOutput);
1276
+ }
1277
1278
if (!$this->shouldExceptionExpectationsBeVerified($exception)) {
1279
throw $exception;
1280
0 commit comments