aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/UserBundle
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-12-18 14:32:21 +0100
committerGitHub <noreply@github.com>2017-12-18 14:32:21 +0100
commitef5c8a7d01d7b3f0041455503499ab67e2206e0d (patch)
tree66fad00b695ceb24a5a3ee7ef3185c18050f316f /tests/Wallabag/UserBundle
parent01ea7f585504fba74bd138386ca30ca4d26cfe65 (diff)
parentad880894a8dc0af97ee145f76ed10ca99e1ebf5a (diff)
downloadwallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.tar.gz
wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.tar.zst
wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.zip
Merge pull request #3515 from wallabag/php-7.2
Add PHP 7.2 compatibility
Diffstat (limited to 'tests/Wallabag/UserBundle')
-rw-r--r--tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php3
-rw-r--r--tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php3
-rw-r--r--tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php3
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php b/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php
index 9e33cdca..6e37cfc4 100644
--- a/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php
+++ b/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php
@@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener;
4 4
5use Monolog\Handler\TestHandler; 5use Monolog\Handler\TestHandler;
6use Monolog\Logger; 6use Monolog\Logger;
7use PHPUnit\Framework\TestCase;
7use Symfony\Component\EventDispatcher\EventDispatcher; 8use Symfony\Component\EventDispatcher\EventDispatcher;
8use Symfony\Component\HttpFoundation\Request; 9use Symfony\Component\HttpFoundation\Request;
9use Symfony\Component\HttpFoundation\RequestStack; 10use Symfony\Component\HttpFoundation\RequestStack;
@@ -11,7 +12,7 @@ use Symfony\Component\Security\Core\AuthenticationEvents;
11use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent; 12use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent;
12use Wallabag\UserBundle\EventListener\AuthenticationFailureListener; 13use Wallabag\UserBundle\EventListener\AuthenticationFailureListener;
13 14
14class AuthenticationFailureListenerTest extends \PHPUnit_Framework_TestCase 15class AuthenticationFailureListenerTest extends TestCase
15{ 16{
16 private $requestStack; 17 private $requestStack;
17 private $logHandler; 18 private $logHandler;
diff --git a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php
index e5a145b8..2b540fdf 100644
--- a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php
+++ b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php
@@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener;
4 4
5use FOS\UserBundle\Event\FilterUserResponseEvent; 5use FOS\UserBundle\Event\FilterUserResponseEvent;
6use FOS\UserBundle\FOSUserEvents; 6use FOS\UserBundle\FOSUserEvents;
7use PHPUnit\Framework\TestCase;
7use Symfony\Component\EventDispatcher\EventDispatcher; 8use Symfony\Component\EventDispatcher\EventDispatcher;
8use Symfony\Component\HttpFoundation\Request; 9use Symfony\Component\HttpFoundation\Request;
9use Symfony\Component\HttpFoundation\Response; 10use Symfony\Component\HttpFoundation\Response;
@@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\Config;
11use Wallabag\UserBundle\Entity\User; 12use Wallabag\UserBundle\Entity\User;
12use Wallabag\UserBundle\EventListener\CreateConfigListener; 13use Wallabag\UserBundle\EventListener\CreateConfigListener;
13 14
14class CreateConfigListenerTest extends \PHPUnit_Framework_TestCase 15class CreateConfigListenerTest extends TestCase
15{ 16{
16 private $em; 17 private $em;
17 private $listener; 18 private $listener;
diff --git a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
index 7381ccf1..f39fa60e 100644
--- a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
+++ b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
@@ -2,6 +2,7 @@
2 2
3namespace Tests\Wallabag\UserBundle\Mailer; 3namespace Tests\Wallabag\UserBundle\Mailer;
4 4
5use PHPUnit\Framework\TestCase;
5use Wallabag\UserBundle\Entity\User; 6use Wallabag\UserBundle\Entity\User;
6use Wallabag\UserBundle\Mailer\AuthCodeMailer; 7use Wallabag\UserBundle\Mailer\AuthCodeMailer;
7 8
@@ -21,7 +22,7 @@ final class CountableMemorySpool extends \Swift_MemorySpool implements \Countabl
21 } 22 }
22} 23}
23 24
24class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase 25class AuthCodeMailerTest extends TestCase
25{ 26{
26 protected $mailer; 27 protected $mailer;
27 protected $spool; 28 protected $spool;