BladeIfEmptyStatementsTest.php 383 B

1234567891011121314151617
  1. <?php
  2. namespace Illuminate\Tests\View\Blade;
  3. class BladeIfEmptyStatementsTest extends AbstractBladeTestCase
  4. {
  5. public function testIfStatementsAreCompiled()
  6. {
  7. $string = '@empty ($test)
  8. breeze
  9. @endempty';
  10. $expected = '<?php if(empty($test)): ?>
  11. breeze
  12. <?php endif; ?>';
  13. $this->assertEquals($expected, $this->compiler->compileString($string));
  14. }
  15. }