File tree 1 file changed +2
-0
lines changed
src/Symfony/Bundle/TwigBundle/Tests/Controller
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ public function testShowActionCanBeForcedToShowErrorPage()
52
52
);
53
53
54
54
$ request = Request::create ('whatever ' , 'GET ' );
55
+ $ request ->headers ->set ('X-Php-Ob-Level ' , 1 );
55
56
$ request ->attributes ->set ('showException ' , false );
56
57
$ exception = FlattenException::create (new \Exception (), 404 );
57
58
$ controller = new ExceptionController ($ twig , /* "showException" defaults to --> */ true );
@@ -71,6 +72,7 @@ public function testFallbackToHtmlIfNoTemplateForRequestedFormat()
71
72
);
72
73
73
74
$ request = Request::create ('whatever ' );
75
+ $ request ->headers ->set ('X-Php-Ob-Level ' , 1 );
74
76
$ request ->setRequestFormat ('txt ' );
75
77
$ exception = FlattenException::create (new \Exception ());
76
78
$ controller = new ExceptionController ($ twig , false );
You can’t perform that action at this time.
0 commit comments