Skip to content

Commit 786b28e

Browse files
committed
fixing testLoadFileBigTwicePreserveOption to be system independent (*nix, win)
1 parent 3d7ccad commit 786b28e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/DomTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,10 @@ public function testLoadFileBigTwicePreserveOption()
192192
$dom = new Dom;
193193
$dom->loadFromFile('tests/files/big.html', ['preserveLineBreaks' => true]);
194194
$post = $dom->find('.post-row', 0);
195-
$this->assertEquals('<p>Журчанье воды<br />
196-
Черно-белые тени<br />
197-
Вновь на фонтане</p>', trim($post->find('.post-message', 0)->innerHtml));
195+
$this->assertEquals(
196+
"<p>Журчанье воды<br />\nЧерно-белые тени<br />\nВновь на фонтане</p>",
197+
trim($post->find('.post-message', 0)->innerHtml)
198+
);
198199
}
199200

200201
public function testLoadFromUrl()

0 commit comments

Comments
 (0)