forked from wallabag/wallabag
Use namespaced PHPUnit classes
This commit is contained in:
@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener;
|
||||
|
||||
use Monolog\Handler\TestHandler;
|
||||
use Monolog\Logger;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
@ -11,7 +12,7 @@ use Symfony\Component\Security\Core\AuthenticationEvents;
|
||||
use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent;
|
||||
use Wallabag\UserBundle\EventListener\AuthenticationFailureListener;
|
||||
|
||||
class AuthenticationFailureListenerTest extends \PHPUnit_Framework_TestCase
|
||||
class AuthenticationFailureListenerTest extends TestCase
|
||||
{
|
||||
private $requestStack;
|
||||
private $logHandler;
|
||||
|
||||
@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener;
|
||||
|
||||
use FOS\UserBundle\Event\FilterUserResponseEvent;
|
||||
use FOS\UserBundle\FOSUserEvents;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\Config;
|
||||
use Wallabag\UserBundle\Entity\User;
|
||||
use Wallabag\UserBundle\EventListener\CreateConfigListener;
|
||||
|
||||
class CreateConfigListenerTest extends \PHPUnit_Framework_TestCase
|
||||
class CreateConfigListenerTest extends TestCase
|
||||
{
|
||||
private $em;
|
||||
private $listener;
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Tests\Wallabag\UserBundle\Mailer;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Wallabag\UserBundle\Entity\User;
|
||||
use Wallabag\UserBundle\Mailer\AuthCodeMailer;
|
||||
|
||||
@ -21,7 +22,7 @@ final class CountableMemorySpool extends \Swift_MemorySpool implements \Countabl
|
||||
}
|
||||
}
|
||||
|
||||
class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase
|
||||
class AuthCodeMailerTest extends TestCase
|
||||
{
|
||||
protected $mailer;
|
||||
protected $spool;
|
||||
|
||||
Reference in New Issue
Block a user