BladeEscapedTest.php 748 B

12345678910111213141516171819
  1. <?php
  2. namespace Illuminate\Tests\View\Blade;
  3. class BladeEscapedTest extends AbstractBladeTestCase
  4. {
  5. public function testEscapedWithAtDirectivesAreCompiled()
  6. {
  7. $this->assertSame('@foreach', $this->compiler->compileString('@@foreach'));
  8. $this->assertSame('@verbatim @continue @endverbatim', $this->compiler->compileString('@@verbatim @@continue @@endverbatim'));
  9. $this->assertSame('@foreach($i as $x)', $this->compiler->compileString('@@foreach($i as $x)'));
  10. $this->assertSame('@continue @break', $this->compiler->compileString('@@continue @@break'));
  11. $this->assertSame('@foreach(
  12. $i as $x
  13. )', $this->compiler->compileString('@@foreach(
  14. $i as $x
  15. )'));
  16. }
  17. }