Вход Регистрация
Файл: gapps/vendor/laravel/framework/src/Illuminate/Foundation/Testing/WithoutMiddleware.php
Строк: 16
<?php

namespace IlluminateFoundationTesting;

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. CrawlerTrait not used.');
        }
    }
}
Онлайн: 2
Реклама