From e7b0b899e0c49060b48c12db5ef7a99a579fa681 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 8 Dec 2014 17:47:47 +0100 Subject: [PATCH] avoid risky tests --- .../TwigBundle/Tests/Controller/ExceptionControllerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Controller/ExceptionControllerTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Controller/ExceptionControllerTest.php index 4a17902ae9..72f2f728d9 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Controller/ExceptionControllerTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Controller/ExceptionControllerTest.php @@ -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);