/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/View/Blade/BladeWhileStatementsTest.php
32 строки
714 B
Lucas Michot
[5.5] Let PHPUnit setup Blade tests. (#19675)
19 июн 2017, 16:25
19 июн 2017, 16:25
59ee769
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\View\Blade; class BladeWhileStatementsTest extends AbstractBladeTestCase { public function testWhileStatementsAreCompiled() { $string = '@while ($foo) test @endwhile'; $expected = '<?php while($foo): ?> test <?php endwhile; ?>'; $this->assertEquals($expected, $this->compiler->compileString($string)); } public function testNestedWhileStatementsAreCompiled() { $string = '@while ($foo) @while ($bar) test @endwhile @endwhile'; $expected = '<?php while($foo): ?> <?php while($bar): ?> test <?php endwhile; ?> <?php endwhile; ?>'; $this->assertEquals($expected, $this->compiler->compileString($string)); } }