/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/View/Blade/AbstractBladeTestCase.php
36 строк
821 B
Jason McCreary
[13.x] Mockery cleanup (#61117)
10 авг 2026, 20:23
Не верифицирован
10 авг 2026, 20:23
2ee40ee
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\View\Blade; use Illuminate\Container\Container; use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; use Illuminate\View\Component; use Mockery; use PHPUnit\Framework\TestCase; abstract class AbstractBladeTestCase extends TestCase { /** * @var \Illuminate\View\Compilers\BladeCompiler */ protected $compiler; protected function setUp(): void { $this->compiler = new BladeCompiler($this->getFiles(), __DIR__); } protected function tearDown(): void { Container::setInstance(null); Component::flushCache(); Component::forgetComponentsResolver(); Component::forgetFactory(); } protected function getFiles() { return Mockery::mock(Filesystem::class); } }