Skip to content

Commit 5e37266

Browse files
committed
Use PHP_EOL
1 parent ac2dfbc commit 5e37266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Context/ThenStepDefinitions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ public function then_stdout_should_be_csv_containing( TableNode $expected ): voi
306306
// Convert expected rows to CSV format for diff.
307307
$expected_csv = '';
308308
foreach ( $expected_rows as $row ) {
309-
$expected_csv .= implode( ',', array_map( 'trim', $row ) ) . "\n";
309+
$expected_csv .= implode( ',', array_map( 'trim', $row ) ) . PHP_EOL;
310310
}
311311
$diff = $this->generate_diff( trim( $expected_csv ), trim( $output ) );
312312
if ( ! empty( $diff ) ) {
313-
$message .= "\n\n" . $diff;
313+
$message .= PHP_EOL . PHP_EOL . $diff;
314314
}
315315
throw new Exception( $message );
316316
}

0 commit comments

Comments
 (0)