@@ -49,15 +49,15 @@ public function testCompileCompilesFileAndReturnsContents()
4949 {
5050 $ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
5151 $ 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 " );
5353 $ compiler ->compile ('foo ' );
5454 }
5555
5656 public function testCompileCompilesAndGetThePath ()
5757 {
5858 $ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
5959 $ 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 " );
6161 $ compiler ->compile ('foo ' );
6262 $ this ->assertEquals ('foo ' , $ compiler ->getPath ());
6363 }
@@ -73,7 +73,7 @@ public function testCompileWithPathSetBefore()
7373 {
7474 $ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
7575 $ 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 " );
7777 // set path before compilation
7878 $ compiler ->setPath ('foo ' );
7979 // trigger compilation with null $path
@@ -97,7 +97,7 @@ public function testIncludePathToTemplate()
9797 {
9898 $ compiler = new BladeCompiler ($ files = $ this ->getFiles (), __DIR__ );
9999 $ 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 " );
101101 $ compiler ->compile ('foo ' );
102102 }
103103
0 commit comments