From a9cad9ab11d46e839644b1fe6b71a8c2b62a4412 Mon Sep 17 00:00:00 2001 From: Cees Geene Date: Thu, 21 Jan 2016 11:28:39 +0100 Subject: [PATCH] Allow request mock to be cloned --- tests/src/Unit/RedirectRequestSubscriberTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/Unit/RedirectRequestSubscriberTest.php b/tests/src/Unit/RedirectRequestSubscriberTest.php index 3a72e7a..1db5dc2 100644 --- a/tests/src/Unit/RedirectRequestSubscriberTest.php +++ b/tests/src/Unit/RedirectRequestSubscriberTest.php @@ -273,7 +273,12 @@ protected function getGetResponseEventStub($path_info, $query_string) { ->with('GET') ->will($this->returnValue(TRUE)); + $request->query = new ParameterBag(); $request->attributes = new ParameterBag(); + $request->cookies = new ParameterBag(); + $request->files = new FileBag(); + $request->server = new ServerBag(); + $request->headers = new HeaderBag(); $http_kernel = $this->getMockBuilder('\Symfony\Component\HttpKernel\HttpKernelInterface') ->getMock();