Skip to content

Commit

Permalink
Add test for multi-byte chars in blade (#46206)
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 authored Feb 21, 2023
1 parent cf021e5 commit 162f3d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/View/Blade/BladeEscapedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ public function testNestedEscapes()
$template = '
@foreach($cols as $col)
@@foreach($issues as $issue_45915)
๐Ÿ‘‹ ุณู„ุงู… ๐Ÿ‘‹
@@endforeach
@endforeach';
$compiled = '
<?php $__currentLoopData = $cols; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $col): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
@foreach($issues as $issue_45915)
๐Ÿ‘‹ ุณู„ุงู… ๐Ÿ‘‹
@endforeach
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>';
$this->assertSame($compiled, $this->compiler->compileString($template));
Expand Down

0 comments on commit 162f3d2

Please sign in to comment.