@@ -16,12 +16,12 @@ public function testComponentsAreCompiled()
16
16
17
17
public function testClassComponentsAreCompiled ()
18
18
{
19
- $ this ->assertSame ('<?php if (isset($component)) { $__componentOriginal2dda3d2f2f9b76bd400bf03f0b84e87f = $component; } ?>
19
+ $ this ->assertSame (str_replace ( "\r\n" , "\n" , '<?php if (isset($component)) { $__componentOriginal2dda3d2f2f9b76bd400bf03f0b84e87f = $component; } ?>
20
20
<?php if (isset($attributes)) { $__attributesOriginal2dda3d2f2f9b76bd400bf03f0b84e87f = $attributes; } ?>
21
21
<?php $component = Illuminate\Tests\View\Blade\ComponentStub::class::resolve(["foo" => "bar"] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
22
22
<?php $component->withName( \'test \'); ?>
23
23
<?php if ($component->shouldRender()): ?>
24
- <?php $__env->startComponent($component->resolveView(), $component->data()); ?> ' , $ this ->compiler ->compileString ('@component( \'Illuminate\Tests\View\Blade\ComponentStub::class \', \'test \', ["foo" => "bar"]) ' ));
24
+ <?php $__env->startComponent($component->resolveView(), $component->data()); ?> ') , $ this ->compiler ->compileString ('@component( \'Illuminate\Tests\View\Blade\ComponentStub::class \', \'test \', ["foo" => "bar"]) ' ));
25
25
}
26
26
27
27
public function testEndComponentsAreCompiled ()
@@ -35,7 +35,7 @@ public function testEndComponentClassesAreCompiled()
35
35
{
36
36
$ this ->compiler ->newComponentHash ('foo ' );
37
37
38
- $ this ->assertSame ('<?php echo $__env->renderComponent(); ?>
38
+ $ this ->assertSame (str_replace ( "\r\n" , "\n" , '<?php echo $__env->renderComponent(); ?>
39
39
<?php endif; ?>
40
40
<?php if (isset($__attributesOriginal79aef92e83454121ab6e5f64077e7d8a)): ?>
41
41
<?php $attributes = $__attributesOriginal79aef92e83454121ab6e5f64077e7d8a; ?>
@@ -44,7 +44,7 @@ public function testEndComponentClassesAreCompiled()
44
44
<?php if (isset($__componentOriginal79aef92e83454121ab6e5f64077e7d8a)): ?>
45
45
<?php $component = $__componentOriginal79aef92e83454121ab6e5f64077e7d8a; ?>
46
46
<?php unset($__componentOriginal79aef92e83454121ab6e5f64077e7d8a); ?>
47
- <?php endif; ?> ' , $ this ->compiler ->compileString ('@endcomponentClass ' ));
47
+ <?php endif; ?> ') , $ this ->compiler ->compileString ('@endcomponentClass ' ));
48
48
}
49
49
50
50
public function testSlotsAreCompiled ()
0 commit comments