diff --git a/tests/View/ViewCompilerEngineTest.php b/tests/View/ViewCompilerEngineTest.php index 134126821d96..e1011d1b0b1e 100755 --- a/tests/View/ViewCompilerEngineTest.php +++ b/tests/View/ViewCompilerEngineTest.php @@ -19,7 +19,7 @@ public function testViewsMayBeRecompiledAndRendered() $engine->getCompiler()->shouldReceive('compile')->once()->with(__DIR__.'/fixtures/foo.php'); $results = $engine->get(__DIR__.'/fixtures/foo.php'); - $this->assertEquals("Hello World\n", $results); + $this->assertEquals("Hello World" . PHP_EOL, $results); } @@ -31,7 +31,7 @@ public function testViewsAreNotRecompiledIfTheyAreNotExpired() $engine->getCompiler()->shouldReceive('compile')->never(); $results = $engine->get(__DIR__.'/fixtures/foo.php'); - $this->assertEquals("Hello World\n", $results); + $this->assertEquals("Hello World" . PHP_EOL, $results); } diff --git a/tests/View/ViewPhpEngineTest.php b/tests/View/ViewPhpEngineTest.php index 040888a847d3..3530d9de75a2 100755 --- a/tests/View/ViewPhpEngineTest.php +++ b/tests/View/ViewPhpEngineTest.php @@ -14,7 +14,7 @@ public function tearDown() public function testViewsMayBeProperlyRendered() { $engine = new PhpEngine; - $this->assertEquals("Hello World\n", $engine->get(__DIR__.'/fixtures/basic.php')); + $this->assertEquals("Hello World" . PHP_EOL, $engine->get(__DIR__.'/fixtures/basic.php')); } }