@@ -6,8 +6,7 @@ class BladeExtendsTest extends AbstractBladeTestCase
6
6
{
7
7
public function testExtendsAreCompiled ()
8
8
{
9
- $ string = '@extends( \'foo \')
10
- test ' ;
9
+ $ string = "@extends('foo') \ntest " ;
11
10
$ expected = "test \n" .'<?php echo $__env->make( \'foo \', array_diff_key(get_defined_vars(), [ \'__data \' => 1, \'__path \' => 1]))->render(); ?> ' ;
12
11
$ this ->assertEquals ($ expected , $ this ->compiler ->compileString ($ string ));
13
12
@@ -18,8 +17,7 @@ public function testExtendsAreCompiled()
18
17
19
18
public function testSequentialCompileStringCalls ()
20
19
{
21
- $ string = '@extends( \'foo \')
22
- test ' ;
20
+ $ string = "@extends('foo') \ntest " ;
23
21
$ expected = "test \n" .'<?php echo $__env->make( \'foo \', array_diff_key(get_defined_vars(), [ \'__data \' => 1, \'__path \' => 1]))->render(); ?> ' ;
24
22
$ this ->assertEquals ($ expected , $ this ->compiler ->compileString ($ string ));
25
23
@@ -31,8 +29,7 @@ public function testSequentialCompileStringCalls()
31
29
32
30
public function testExtendsFirstAreCompiled ()
33
31
{
34
- $ string = '@extendsFirst([ \'foo \', \'milwad \'])
35
- test ' ;
32
+ $ string = "@extendsFirst(['foo', 'milwad']) \ntest " ;
36
33
$ expected = "test \n" .'<?php echo $__env->first([ \'foo \', \'milwad \'], array_diff_key(get_defined_vars(), [ \'__data \' => 1, \'__path \' => 1]))->render(); ?> ' ;
37
34
$ this ->assertEquals ($ expected , $ this ->compiler ->compileString ($ string ));
38
35
0 commit comments