/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Foundation/Testing/WithoutMiddleware.php
22 строки
500 B
Taylor Otwell
Fix exception message.
19 дек 2016, 23:26
19 дек 2016, 23:26
b856355
Код
Авторство
О чём код?
<?php namespace Illuminate\Foundation\Testing; use Exception; trait WithoutMiddleware { /** * Prevent all middleware from being executed for this test class. * * @throws \Exception */ public function disableMiddlewareForAllTests() { if (method_exists($this, 'withoutMiddleware')) { $this->withoutMiddleware(); } else { throw new Exception('Unable to disable middleware. MakesHttpRequests trait not used.'); } } }