aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-07-24 11:15:51 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-08-22 20:16:50 +0200
commitdb4d63fc1ae513335b751beb8f89e1eed61871c2 (patch)
treec1406cef26fa9d8e0498f889588f17d403a5ba91 /tests/Wallabag/CoreBundle
parentb10a422e1f24d57c0cc616f5f06f35676335187e (diff)
downloadwallabag-db4d63fc1ae513335b751beb8f89e1eed61871c2.tar.gz
wallabag-db4d63fc1ae513335b751beb8f89e1eed61871c2.tar.zst
wallabag-db4d63fc1ae513335b751beb8f89e1eed61871c2.zip
Upgrade PHPUnit to version 5
- Fix deprecated getMock - Use PHPUnit 4 for PHP 5.5 build Manually cherry-picked from PR https://github.com/wallabag/wallabag/pull/2201
Diffstat (limited to 'tests/Wallabag/CoreBundle')
-rw-r--r--tests/Wallabag/CoreBundle/EventListener/LocaleListenerTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/EventListener/LocaleListenerTest.php b/tests/Wallabag/CoreBundle/EventListener/LocaleListenerTest.php
index 2a7f9390..078bb69a 100644
--- a/tests/Wallabag/CoreBundle/EventListener/LocaleListenerTest.php
+++ b/tests/Wallabag/CoreBundle/EventListener/LocaleListenerTest.php
@@ -15,7 +15,11 @@ class LocaleListenerTest extends \PHPUnit_Framework_TestCase
15{ 15{
16 private function getEvent(Request $request) 16 private function getEvent(Request $request)
17 { 17 {
18 return new GetResponseEvent($this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'), $request, HttpKernelInterface::MASTER_REQUEST); 18 $kernel = $this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')
19 ->disableOriginalConstructor()
20 ->getMock();
21
22 return new GetResponseEvent($kernel, $request, HttpKernelInterface::MASTER_REQUEST);
19 } 23 }
20 24
21 public function testWithoutSession() 25 public function testWithoutSession()