Skip to content

Commit

Permalink
Use PHP_EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 26, 2020
1 parent 14110cc commit 794571f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Util/Log/JUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Util\Log;

use const PHP_EOL;
use function class_exists;
use function get_class;
use function method_exists;
Expand Down Expand Up @@ -384,12 +385,12 @@ private function doAddFault(Test $test, Throwable $t, string $type): void
}

if ($test instanceof SelfDescribing) {
$buffer = $test->toString() . "\n";
$buffer = $test->toString() . PHP_EOL;
} else {
$buffer = '';
}

$buffer .= TestFailure::exceptionToString($t) . "\n" .
$buffer .= TestFailure::exceptionToString($t) . PHP_EOL .
Filter::getFilteredStacktrace($t);

$fault = $this->document->createElement(
Expand Down

0 comments on commit 794571f

Please sign in to comment.