/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/View/Blade/BladeCommentsTest.php
27 строк
755 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 BladeCommentsTest extends AbstractBladeTestCase { public function testCommentsAreCompiled() { $string = '{{--this is a comment--}}'; $this->assertEmpty($this->compiler->compileString($string)); $string = '{{-- this is a comment --}}'; $this->assertEmpty($this->compiler->compileString($string)); $string = sprintf('{{-- this is an %s long comment --}}', str_repeat('extremely ', 1000)); $this->assertEmpty($this->compiler->compileString($string)); } public function testBladeCodeInsideCommentsIsNotCompiled() { $string = '{{-- @foreach() --}}'; $this->assertEmpty($this->compiler->compileString($string)); } }