Add missing TestCase namespace

This commit is contained in:
Jeremy Benoist 2017-12-16 22:38:07 +01:00
parent 26e2f07419
commit 4b6942d2d8
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
5 changed files with 10 additions and 5 deletions

View file

@ -2,6 +2,7 @@
namespace Tests\Wallabag\CoreBundle\Event\Listener;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;
@ -11,7 +12,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
use Wallabag\CoreBundle\Event\Listener\LocaleListener;
class LocaleListenerTest extends \PHPUnit_Framework_TestCase
class LocaleListenerTest extends TestCase
{
public function testWithoutSession()
{

View file

@ -2,6 +2,7 @@
namespace Tests\Wallabag\CoreBundle\Event\Listener;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\Config;
use Wallabag\CoreBundle\Event\Listener\UserLocaleListener;
use Wallabag\UserBundle\Entity\User;
class UserLocaleListenerTest extends \PHPUnit_Framework_TestCase
class UserLocaleListenerTest extends TestCase
{
public function testWithLanguage()
{

View file

@ -5,9 +5,10 @@ namespace Tests\Wallabag\CoreBundle\Event\Subscriber;
use Doctrine\Common\EventManager;
use Doctrine\ORM\Event\LoadClassMetadataEventArgs;
use Doctrine\ORM\Mapping\ClassMetadata;
use PHPUnit\Framework\TestCase;
use Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber;
class TablePrefixSubscriberTest extends \PHPUnit_Framework_TestCase
class TablePrefixSubscriberTest extends TestCase
{
public function dataForPrefix()
{

View file

@ -2,9 +2,10 @@
namespace Tests\Wallabag\CoreBundle\Form\DataTransformer;
use PHPUnit\Framework\TestCase;
use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer;
class StringToListTransformerTest extends \PHPUnit_Framework_TestCase
class StringToListTransformerTest extends TestCase
{
/**
* @dataProvider transformProvider

View file

@ -5,11 +5,12 @@ namespace Tests\Wallabag\CoreBundle\GuzzleSiteAuthenticator;
use Graby\SiteConfig\SiteConfig as GrabySiteConfig;
use Monolog\Handler\TestHandler;
use Monolog\Logger;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder;
class GrabySiteConfigBuilderTest extends \PHPUnit_Framework_TestCase
class GrabySiteConfigBuilderTest extends TestCase
{
/** @var \Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder */
protected $builder;