Skip to content

Commit 1140fad

Browse files
lyrixxsebastianbergmann
authored andcommitted
Add a trailing \n in ShutdownHandler message
1 parent 52971e8 commit 1140fad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Runner/ShutdownHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace PHPUnit\Runner;
1111

1212
use function register_shutdown_function;
13+
use function rtrim;
1314

1415
/**
1516
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@@ -44,7 +45,7 @@ private static function register(): void
4445
register_shutdown_function(
4546
static function (): void
4647
{
47-
print self::$message;
48+
print rtrim(self::$message) . "\n";
4849
},
4950
);
5051
}

0 commit comments

Comments
 (0)