Skip to content

Commit 3454471

Browse files
Tweak message
1 parent 69b771b commit 3454471

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Framework/TestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,9 @@ private function handleExceptionFromInvokedCountMockObjectRule(Throwable $t): vo
23212321
private function startErrorLogCapture(): void
23222322
{
23232323
if (ini_get('display_errors') === '0') {
2324-
ShutdownHandler::setMessage('Fatal error: Premature end of PHP process. Use display_errors=On to see the error message.');
2324+
ShutdownHandler::setMessage(
2325+
'Fatal error: Premature end of PHPUnit\'s PHP process. Use display_errors=On to see the error message.',
2326+
);
23252327
}
23262328

23272329
$errorLogCapture = tmpfile();

tests/end-to-end/regression/6294-display-errors-off.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ PHPUnit %s by Sebastian Bergmann and contributors.
1515

1616
Runtime: %s
1717

18-
Fatal error: Premature end of PHP process. Use display_errors=On to see the error message.
18+
Fatal error: Premature end of PHPUnit's PHP process. Use display_errors=On to see the error message.

0 commit comments

Comments
 (0)