]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - tests/Wallabag/CoreBundle/EventListener/LocaleListenerTest.php
Upgrade PHPUnit to version 5
[github/wallabag/wallabag.git] / tests / Wallabag / CoreBundle / EventListener / LocaleListenerTest.php
index 2a7f939067fb0a8ca7e0b84f8829c921a47c47e4..078bb69aed905d75847a87525785a649cfa724aa 100644 (file)
@@ -15,7 +15,11 @@ class LocaleListenerTest extends \PHPUnit_Framework_TestCase
 {
     private function getEvent(Request $request)
     {
-        return new GetResponseEvent($this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'), $request, HttpKernelInterface::MASTER_REQUEST);
+        $kernel = $this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')
+            ->disableOriginalConstructor()
+            ->getMock();
+
+        return new GetResponseEvent($kernel, $request, HttpKernelInterface::MASTER_REQUEST);
     }
 
     public function testWithoutSession()