@@ -49,15 +49,15 @@ public function testCompileCompilesFileAndReturnsContents()
49
49
{
50
50
$ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
51
51
$ files ->shouldReceive ('get ' )->once ()->with ('foo ' )->andReturn ('Hello World ' );
52
- $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World \n <?php /* foo */ ?> " );
52
+ $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World " );
53
53
$ compiler ->compile ('foo ' );
54
54
}
55
55
56
56
public function testCompileCompilesAndGetThePath ()
57
57
{
58
58
$ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
59
59
$ files ->shouldReceive ('get ' )->once ()->with ('foo ' )->andReturn ('Hello World ' );
60
- $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World \n <?php /* foo */ ?> " );
60
+ $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World " );
61
61
$ compiler ->compile ('foo ' );
62
62
$ this ->assertEquals ('foo ' , $ compiler ->getPath ());
63
63
}
@@ -73,7 +73,7 @@ public function testCompileWithPathSetBefore()
73
73
{
74
74
$ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
75
75
$ files ->shouldReceive ('get ' )->once ()->with ('foo ' )->andReturn ('Hello World ' );
76
- $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World \n <?php /* foo */ ?> " );
76
+ $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World " );
77
77
// set path before compilation
78
78
$ compiler ->setPath ('foo ' );
79
79
// trigger compilation with null $path
@@ -97,7 +97,7 @@ public function testIncludePathToTemplate()
97
97
{
98
98
$ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
99
99
$ files ->shouldReceive ('get ' )->once ()->with ('foo ' )->andReturn ('Hello World ' );
100
- $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World \n <?php /* foo */ ?> " );
100
+ $ files ->shouldReceive ('put ' )->once ()->with (__DIR__ .'/ ' .sha1 ('foo ' ).'.php ' , "Hello World " );
101
101
$ compiler ->compile ('foo ' );
102
102
}
103
103
0 commit comments