File "WithoutMiddleware.php"
Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/laravel/framework/src/Illuminate/Foundation/Testing/WithoutMiddleware.php
File size: 500 bytes
MIME-type: text/x-php
Charset: utf-8
<?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.');
}
}
}