Skip to content

Commit

Permalink
Merge pull request laravel#5720 from GrahamCampbell/4.2-windows
Browse files Browse the repository at this point in the history
[4.2] Fixed Tests On Windows
  • Loading branch information
taylorotwell committed Sep 30, 2014
2 parents b67c734 + 3ad954c commit 8615680
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/Support/SupportSerializableClosureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function testCanGetCodeAndVariablesFromObject()
});

$expectedVars = array('a' => 1, 'b' => 2);
$expectedCode = 'function ($i) use($a, $b) {'.PHP_EOL.
' return $a + $b + $i;'.PHP_EOL.
'};';
$expectedCode = 'function ($i) use($a, $b) {
return $a + $b + $i;
};';
$this->assertEquals($expectedVars, $f->getVariables());
$this->assertEquals($expectedCode, $f->getCode());
}
Expand Down
4 changes: 2 additions & 2 deletions tests/View/ViewCompilerEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'.PHP_EOL, $results);
$this->assertEquals("Hello World\n", $results);
}


Expand All @@ -31,7 +31,7 @@ public function testViewsAreNotRecompiledIfTheyAreNotExpired()
$engine->getCompiler()->shouldReceive('compile')->never();
$results = $engine->get(__DIR__.'/fixtures/foo.php');

$this->assertEquals('Hello World'.PHP_EOL, $results);
$this->assertEquals("Hello World\n", $results);
}


Expand Down
2 changes: 1 addition & 1 deletion tests/View/ViewPhpEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function tearDown()
public function testViewsMayBeProperlyRendered()
{
$engine = new PhpEngine;
$this->assertEquals('Hello World'.PHP_EOL, $engine->get(__DIR__.'/fixtures/basic.php'));
$this->assertEquals("Hello World\n", $engine->get(__DIR__.'/fixtures/basic.php'));
}

}
2 changes: 1 addition & 1 deletion tests/View/fixtures/section-exception-layout.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php echo $__env->yieldContent('content'); ?>
<?php echo $__env->yieldContent('content'); ?>

0 comments on commit 8615680

Please sign in to comment.