/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/View/Blade/BladeYieldTest.php
13 строк
558 B
Lucas Michot
[6.0] Use assertSame for string assertions (#29757)
27 авг 2019, 15:48
27 авг 2019, 15:48
1d5ee86
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\View\Blade; class BladeYieldTest extends AbstractBladeTestCase { public function testYieldsAreCompiled() { $this->assertSame('<?php echo $__env->yieldContent(\'foo\'); ?>', $this->compiler->compileString('@yield(\'foo\')')); $this->assertSame('<?php echo $__env->yieldContent(\'foo\', \'bar\'); ?>', $this->compiler->compileString('@yield(\'foo\', \'bar\')')); $this->assertSame('<?php echo $__env->yieldContent(name(foo)); ?>', $this->compiler->compileString('@yield(name(foo))')); } }