avoid risky tests
This commit is contained in:
parent
0a09eaf609
commit
e7b0b899e0
@ -52,6 +52,7 @@ class ExceptionControllerTest extends TestCase
|
||||
);
|
||||
|
||||
$request = Request::create('whatever', 'GET');
|
||||
$request->headers->set('X-Php-Ob-Level', 1);
|
||||
$request->attributes->set('showException', false);
|
||||
$exception = FlattenException::create(new \Exception(), 404);
|
||||
$controller = new ExceptionController($twig, /* "showException" defaults to --> */ true);
|
||||
@ -71,6 +72,7 @@ class ExceptionControllerTest extends TestCase
|
||||
);
|
||||
|
||||
$request = Request::create('whatever');
|
||||
$request->headers->set('X-Php-Ob-Level', 1);
|
||||
$request->setRequestFormat('txt');
|
||||
$exception = FlattenException::create(new \Exception());
|
||||
$controller = new ExceptionController($twig, false);
|
||||
|
Reference in New Issue
Block a user