Skip to content

Commit

Permalink
Merge 7e30265 into e47f350
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 20, 2017
2 parents e47f350 + 7e30265 commit 2c5d1e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/EventListener/RequestResponseListenerTest.php
Expand Up @@ -683,7 +683,7 @@ private function createRouteCollecitonWithRouteAndRoutingOption($returnValue, $t
{
$route = $this->getMockBuilder('Symfony\Component\Routing\Route')->disableOriginalConstructor()->getMock();
$route->expects($this->exactly($times))->method('getOption')->will($this->returnValue($returnValue));
$routeCollection = $this->getMock('Symfony\Component\Routing\RouteCollection');
$routeCollection = $this->createMock('Symfony\Component\Routing\RouteCollection');
$routeCollection->expects($this->exactly($times))->method('get')->will($this->returnValue($route));

return $routeCollection;
Expand All @@ -701,7 +701,7 @@ private function createRouteCollecitonWithRouteAndRoutingOption($returnValue, $t
private function createGetResponseEvent($content, $method = 'GET', $headers = array())
{
$event = new GetResponseForControllerResultEvent(
$this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->createMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->request,
HttpKernelInterface::MASTER_REQUEST,
$content
Expand All @@ -723,7 +723,7 @@ private function createGetResponseEvent($content, $method = 'GET', $headers = ar
private function createFilterResponseEvent($response, $method = 'GET', $headers = array())
{
$event = new FilterResponseEvent(
$this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->createMock('Symfony\Component\HttpKernel\HttpKernelInterface'),
$this->request,
HttpKernelInterface::MASTER_REQUEST,
$response
Expand Down

0 comments on commit 2c5d1e8

Please sign in to comment.