File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,7 @@ static function ($l) {
7676
7777 // Some messages might contain paths. Let's convert thost to relative paths too
7878 $ message = relativePath ($ message );
79- $ lineFeedPosition = strpos ($ message , '%0A ' );
80- if (is_int ($ lineFeedPosition ) === true ) {
81- $ message = substr ($ message , 0 , $ lineFeedPosition );
82- }
79+ $ message = preg_replace ('/%0A$/ ' , '' , $ message );
8380
8481 $ path = relativePath ($ path );
8582 $ file = "file= {$ path }" ;
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ PHPUnit\TextUI\Command::main();
2121::error file=test/_files/PrinterStatesTest.php,line=12::Failed asserting that false is true.
2222::error file=test/_files/PrinterStatesTest.php,line=54::Failed asserting that false is true.
2323::warning file=test/_files/PrinterStatesTest.php,line=37::This is a risky test
24- ::warning file=test/_files/PrinterStatesTest.php,line=40::This test did not perform any assertions
24+ ::warning file=test/_files/PrinterStatesTest.php,line=40::This test did not perform any assertions%0A%0Atest/_files/PrinterStatesTest.php:40
You can’t perform that action at this time.
0 commit comments