Skip to content

Commit

Permalink
Allow request mock to be cloned
Browse files Browse the repository at this point in the history
  • Loading branch information
ceesgeene authored and Berdir committed Feb 1, 2016
1 parent 5dbe5f1 commit a9cad9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/Unit/RedirectRequestSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a9cad9a

Please sign in to comment.