Skip to content

Commit e7b0b89

Browse files
committed
avoid risky tests
1 parent 0a09eaf commit e7b0b89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/TwigBundle/Tests/Controller/ExceptionControllerTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function testShowActionCanBeForcedToShowErrorPage()
5252
);
5353

5454
$request = Request::create('whatever', 'GET');
55+
$request->headers->set('X-Php-Ob-Level', 1);
5556
$request->attributes->set('showException', false);
5657
$exception = FlattenException::create(new \Exception(), 404);
5758
$controller = new ExceptionController($twig, /* "showException" defaults to --> */ true);
@@ -71,6 +72,7 @@ public function testFallbackToHtmlIfNoTemplateForRequestedFormat()
7172
);
7273

7374
$request = Request::create('whatever');
75+
$request->headers->set('X-Php-Ob-Level', 1);
7476
$request->setRequestFormat('txt');
7577
$exception = FlattenException::create(new \Exception());
7678
$controller = new ExceptionController($twig, false);

0 commit comments

Comments
 (0)