/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/View/Blade/BladeFragmentTest.php
17 строк
602 B
Bruno Alod
[9.x] Adds template fragments to Blade
29 окт 2022, 00:03
29 окт 2022, 00:03
e63b6d6
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\View\Blade; class BladeFragmentTest extends AbstractBladeTestCase { public function testFragmentStartsAreCompiled() { $this->assertSame('<?php $__env->startFragment(\'foo\'); ?>', $this->compiler->compileString('@fragment(\'foo\')')); $this->assertSame('<?php $__env->startFragment(name(foo)); ?>', $this->compiler->compileString('@fragment(name(foo))')); } public function testEndFragmentsAreCompiled() { $this->assertSame('<?php echo $__env->stopFragment(); ?>', $this->compiler->compileString('@endfragment')); } }