@@ -13,37 +13,37 @@ public function testEachsAreCompiled()
1313
1414 public function testIncludesAreCompiled ()
1515 {
16- $ this ->assertSame ('<?php echo $__env->make( \'foo \', \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@include( \'foo \') ' ));
17- $ this ->assertSame ('<?php echo $__env->make( \'foo \', [ \'(( \'], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@include( \'foo \', [ \'(( \']) ' ));
18- $ this ->assertSame ('<?php echo $__env->make( \'foo \', [ \'((a) \' => \'((a) \'], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@include( \'foo \', [ \'((a) \' => \'((a) \']) ' ));
19- $ this ->assertSame ('<?php echo $__env->make(name(foo), \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@include(name(foo)) ' ));
16+ $ this ->assertSame ('<?php echo $__env->make( \'foo \', array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@include( \'foo \') ' ));
17+ $ this ->assertSame ('<?php echo $__env->make( \'foo \', [ \'(( \'], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@include( \'foo \', [ \'(( \']) ' ));
18+ $ this ->assertSame ('<?php echo $__env->make( \'foo \', [ \'((a) \' => \'((a) \'], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@include( \'foo \', [ \'((a) \' => \'((a) \']) ' ));
19+ $ this ->assertSame ('<?php echo $__env->make(name(foo), array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@include(name(foo)) ' ));
2020 }
2121
2222 public function testIncludeIfsAreCompiled ()
2323 {
24- $ this ->assertSame ('<?php if ($__env->exists( \'foo \')) echo $__env->make( \'foo \', \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@includeIf( \'foo \') ' ));
25- $ this ->assertSame ('<?php if ($__env->exists(name(foo))) echo $__env->make(name(foo), \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@includeIf(name(foo)) ' ));
24+ $ this ->assertSame ('<?php if ($__env->exists( \'foo \')) echo $__env->make( \'foo \', array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@includeIf( \'foo \') ' ));
25+ $ this ->assertSame ('<?php if ($__env->exists(name(foo))) echo $__env->make(name(foo), array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@includeIf(name(foo)) ' ));
2626 }
2727
2828 public function testIncludeWhensAreCompiled ()
2929 {
30- $ this ->assertSame ('<?php echo $__env->renderWhen(true, \'foo \', ["foo" => "bar"], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \'])); ?> ' , $ this ->compiler ->compileString ('@includeWhen(true, \'foo \', ["foo" => "bar"]) ' ));
31- $ this ->assertSame ('<?php echo $__env->renderWhen(true, \'foo \', \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \'])); ?> ' , $ this ->compiler ->compileString ('@includeWhen(true, \'foo \') ' ));
30+ $ this ->assertSame ('<?php echo $__env->renderWhen(true, \'foo \', ["foo" => "bar"], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ])); ?> ' , $ this ->compiler ->compileString ('@includeWhen(true, \'foo \', ["foo" => "bar"]) ' ));
31+ $ this ->assertSame ('<?php echo $__env->renderWhen(true, \'foo \', array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ])); ?> ' , $ this ->compiler ->compileString ('@includeWhen(true, \'foo \') ' ));
3232 }
3333
3434 public function testIncludeUnlessesAreCompiled ()
3535 {
36- $ this ->assertSame ('<?php echo $__env->renderUnless(true, \'foo \', ["foo" => "bar"], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \'])); ?> ' , $ this ->compiler ->compileString ('@includeUnless(true, \'foo \', ["foo" => "bar"]) ' ));
37- $ this ->assertSame ('<?php echo $__env->renderUnless(true, \'foo \', ["foo" => "bar_))-))>"], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \'])); ?> ' , $ this ->compiler ->compileString ('@includeUnless(true, \'foo \', ["foo" => "bar_))-))>"]) ' ));
38- $ this ->assertSame ('<?php echo $__env->renderUnless($undefined ?? true, \'foo \', \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \'])); ?> ' , $ this ->compiler ->compileString ('@includeUnless($undefined ?? true, \'foo \') ' ));
36+ $ this ->assertSame ('<?php echo $__env->renderUnless(true, \'foo \', ["foo" => "bar"], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ])); ?> ' , $ this ->compiler ->compileString ('@includeUnless(true, \'foo \', ["foo" => "bar"]) ' ));
37+ $ this ->assertSame ('<?php echo $__env->renderUnless(true, \'foo \', ["foo" => "bar_))-))>"], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ])); ?> ' , $ this ->compiler ->compileString ('@includeUnless(true, \'foo \', ["foo" => "bar_))-))>"]) ' ));
38+ $ this ->assertSame ('<?php echo $__env->renderUnless($undefined ?? true, \'foo \', array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ])); ?> ' , $ this ->compiler ->compileString ('@includeUnless($undefined ?? true, \'foo \') ' ));
3939 }
4040
4141 public function testIncludeFirstsAreCompiled ()
4242 {
43- $ this ->assertSame ('<?php echo $__env->first(["one", "two"], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["one", "two"]) ' ));
44- $ this ->assertSame ('<?php echo $__env->first(["one", "two"], ["foo" => "bar"], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["one", "two"], ["foo" => "bar"]) ' ));
45- $ this ->assertSame ('<?php echo $__env->first(["issue", "#45424)"], ["foo()" => "bar)-))"], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["issue", "#45424)"], ["foo()" => "bar)-))"]) ' ));
46- $ this ->assertSame ('<?php echo $__env->first(["issue", "#45424)"], ["foo" => "bar(-(("], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["issue", "#45424)"], ["foo" => "bar(-(("]) ' ));
47- $ this ->assertSame ('<?php echo $__env->first(["issue", "#45424)"], [(string) "foo()" => "bar(-(("], \Illuminate\Support\Arr::except (get_defined_vars(), [ \'__data \', \'__path \']))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["issue", "#45424)"], [(string) "foo()" => "bar(-(("]) ' ));
43+ $ this ->assertSame ('<?php echo $__env->first(["one", "two"], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["one", "two"]) ' ));
44+ $ this ->assertSame ('<?php echo $__env->first(["one", "two"], ["foo" => "bar"], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["one", "two"], ["foo" => "bar"]) ' ));
45+ $ this ->assertSame ('<?php echo $__env->first(["issue", "#45424)"], ["foo()" => "bar)-))"], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["issue", "#45424)"], ["foo()" => "bar)-))"]) ' ));
46+ $ this ->assertSame ('<?php echo $__env->first(["issue", "#45424)"], ["foo" => "bar(-(("], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["issue", "#45424)"], ["foo" => "bar(-(("]) ' ));
47+ $ this ->assertSame ('<?php echo $__env->first(["issue", "#45424)"], [(string) "foo()" => "bar(-(("], array_diff_key (get_defined_vars(), [ \'__data \' => 1 , \'__path \' => 1 ]))->render(); ?> ' , $ this ->compiler ->compileString ('@includeFirst(["issue", "#45424)"], [(string) "foo()" => "bar(-(("]) ' ));
4848 }
4949}
0 commit comments