Skip to content

Commit ab0ee26

Browse files
fixes the line ending error on windows test (#54222)
1 parent 537afdb commit ab0ee26

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/Foundation/Console/CliDumperTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ public function testArray()
6868

6969
EOF;
7070

71-
$this->assertSame($expected, $output);
71+
$this->assertSame(
72+
str_replace("\r\n", "\n", $expected),
73+
str_replace("\r\n", "\n", $output)
74+
);
7275
}
7376

7477
public function testBoolean()
@@ -96,7 +99,10 @@ public function testObject()
9699
97100
EOF;
98101

99-
$this->assertSame($expected, $output);
102+
$this->assertSame(
103+
str_replace("\r\n", "\n", $expected),
104+
str_replace("\r\n", "\n", $output)
105+
);
100106
}
101107

102108
public function testNull()

0 commit comments

Comments
 (0)