Skip to content

Commit 84074bf

Browse files
committed
refactor how expected lines are set
1 parent 2b6c822 commit 84074bf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/Unit/Drivers/TextDriverTest.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ public function it_can_serialize_when_given_OS_dependant_line_endings()
3333
{
3434
$driver = new TextDriver();
3535

36-
$expected = <<<EOF
37-
38-
GET|HEAD / ..................................................... index
36+
$expected = implode("\n", [
37+
'',
38+
' GET|HEAD / ..................................................... index',
39+
'',
40+
' Showing [1] routes'
41+
]);
3942

40-
Showing [1] routes
41-
EOF;
4243
// Due to using PHP_EOL this should fail (conditionally) when run on windows
4344
$actual = implode(PHP_EOL, [
4445
'',

0 commit comments

Comments
 (0)