Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ad954c

Browse files
Fixed tests on windows
1 parent b67c734 commit 3ad954c

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/Support/SupportSerializableClosureTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function testCanGetCodeAndVariablesFromObject()
4141
});
4242

4343
$expectedVars = array('a' => 1, 'b' => 2);
44-
$expectedCode = 'function ($i) use($a, $b) {'.PHP_EOL.
45-
' return $a + $b + $i;'.PHP_EOL.
46-
'};';
44+
$expectedCode = 'function ($i) use($a, $b) {
45+
return $a + $b + $i;
46+
};';
4747
$this->assertEquals($expectedVars, $f->getVariables());
4848
$this->assertEquals($expectedCode, $f->getCode());
4949
}

tests/View/ViewCompilerEngineTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function testViewsMayBeRecompiledAndRendered()
1919
$engine->getCompiler()->shouldReceive('compile')->once()->with(__DIR__.'/fixtures/foo.php');
2020
$results = $engine->get(__DIR__.'/fixtures/foo.php');
2121

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

2525

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

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

3737

tests/View/ViewPhpEngineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function tearDown()
1414
public function testViewsMayBeProperlyRendered()
1515
{
1616
$engine = new PhpEngine;
17-
$this->assertEquals('Hello World'.PHP_EOL, $engine->get(__DIR__.'/fixtures/basic.php'));
17+
$this->assertEquals("Hello World\n", $engine->get(__DIR__.'/fixtures/basic.php'));
1818
}
1919

2020
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $__env->yieldContent('content'); ?>
1+
<?php echo $__env->yieldContent('content'); ?>

0 commit comments

Comments
 (0)