Use namespaced PHPUnit classes

This commit is contained in:
Jeremy Benoist
2017-12-16 22:17:42 +01:00
parent 3ccf086391
commit bd91bd5c32
23 changed files with 46 additions and 23 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;