Skip to content

Commit 33c7c94

Browse files
fix failing tests on windows OS (#55210)
1 parent 2730140 commit 33c7c94

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/View/Blade/BladeExtendsTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ class BladeExtendsTest extends AbstractBladeTestCase
66
{
77
public function testExtendsAreCompiled()
88
{
9-
$string = '@extends(\'foo\')
10-
test';
9+
$string = "@extends('foo')\ntest";
1110
$expected = "test\n".'<?php echo $__env->make(\'foo\', array_diff_key(get_defined_vars(), [\'__data\' => 1, \'__path\' => 1]))->render(); ?>';
1211
$this->assertEquals($expected, $this->compiler->compileString($string));
1312

@@ -18,8 +17,7 @@ public function testExtendsAreCompiled()
1817

1918
public function testSequentialCompileStringCalls()
2019
{
21-
$string = '@extends(\'foo\')
22-
test';
20+
$string = "@extends('foo')\ntest";
2321
$expected = "test\n".'<?php echo $__env->make(\'foo\', array_diff_key(get_defined_vars(), [\'__data\' => 1, \'__path\' => 1]))->render(); ?>';
2422
$this->assertEquals($expected, $this->compiler->compileString($string));
2523

@@ -31,8 +29,7 @@ public function testSequentialCompileStringCalls()
3129

3230
public function testExtendsFirstAreCompiled()
3331
{
34-
$string = '@extendsFirst([\'foo\', \'milwad\'])
35-
test';
32+
$string = "@extendsFirst(['foo', 'milwad'])\ntest";
3633
$expected = "test\n".'<?php echo $__env->first([\'foo\', \'milwad\'], array_diff_key(get_defined_vars(), [\'__data\' => 1, \'__path\' => 1]))->render(); ?>';
3734
$this->assertEquals($expected, $this->compiler->compileString($string));
3835

0 commit comments

Comments
 (0)