Skip to content

Commit 8db0470

Browse files
committed
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
1 parent 8fa15f4 commit 8db0470

23 files changed

Lines changed: 45 additions & 23 deletions

Tests/Command/ActivateUserCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
namespace FOS\UserBundle\Tests\Command;
1313

1414
use FOS\UserBundle\Command\ActivateUserCommand;
15+
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Application;
1617
use Symfony\Component\Console\Tester\CommandTester;
1718
use Symfony\Component\DependencyInjection\ContainerInterface;
1819

19-
class ActivateUserCommandTest extends \PHPUnit_Framework_TestCase
20+
class ActivateUserCommandTest extends TestCase
2021
{
2122
public function testExecute()
2223
{

Tests/Command/ChangePasswordCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
namespace FOS\UserBundle\Tests\Command;
1313

1414
use FOS\UserBundle\Command\ChangePasswordCommand;
15+
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Application;
1617
use Symfony\Component\Console\Tester\CommandTester;
1718
use Symfony\Component\DependencyInjection\ContainerInterface;
1819

19-
class ChangePasswordCommandTest extends \PHPUnit_Framework_TestCase
20+
class ChangePasswordCommandTest extends TestCase
2021
{
2122
public function testExecute()
2223
{

Tests/Command/CreateUserCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
namespace FOS\UserBundle\Tests\Command;
1313

1414
use FOS\UserBundle\Command\CreateUserCommand;
15+
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Application;
1617
use Symfony\Component\Console\Tester\CommandTester;
1718
use Symfony\Component\DependencyInjection\ContainerInterface;
1819

19-
class CreateUserCommandTest extends \PHPUnit_Framework_TestCase
20+
class CreateUserCommandTest extends TestCase
2021
{
2122
public function testExecute()
2223
{

Tests/Command/DeactivateUserCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
namespace FOS\UserBundle\Tests\Command;
1313

1414
use FOS\UserBundle\Command\DeactivateUserCommand;
15+
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Application;
1617
use Symfony\Component\Console\Tester\CommandTester;
1718
use Symfony\Component\DependencyInjection\ContainerInterface;
1819

19-
class DeactivateUserCommandTest extends \PHPUnit_Framework_TestCase
20+
class DeactivateUserCommandTest extends TestCase
2021
{
2122
public function testExecute()
2223
{

Tests/Command/DemoteUserCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
namespace FOS\UserBundle\Tests\Command;
1313

1414
use FOS\UserBundle\Command\DemoteUserCommand;
15+
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Application;
1617
use Symfony\Component\Console\Tester\CommandTester;
1718
use Symfony\Component\DependencyInjection\ContainerInterface;
1819

19-
class DemoteUserCommandTest extends \PHPUnit_Framework_TestCase
20+
class DemoteUserCommandTest extends TestCase
2021
{
2122
public function testExecute()
2223
{

Tests/Command/PromoteUserCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
namespace FOS\UserBundle\Tests\Command;
1313

1414
use FOS\UserBundle\Command\PromoteUserCommand;
15+
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Application;
1617
use Symfony\Component\Console\Tester\CommandTester;
1718
use Symfony\Component\DependencyInjection\ContainerInterface;
1819

19-
class PromoteUserCommandTest extends \PHPUnit_Framework_TestCase
20+
class PromoteUserCommandTest extends TestCase
2021
{
2122
public function testExecute()
2223
{

Tests/DependencyInjection/FOSUserExtensionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313

1414
use FOS\UserBundle\DependencyInjection\FOSUserExtension;
1515
use FOS\UserBundle\Util\LegacyFormHelper;
16+
use PHPUnit\Framework\TestCase;
1617
use Symfony\Component\DependencyInjection\ContainerBuilder;
1718
use Symfony\Component\Yaml\Parser;
1819

19-
class FOSUserExtensionTest extends \PHPUnit_Framework_TestCase
20+
class FOSUserExtensionTest extends TestCase
2021
{
2122
/** @var ContainerBuilder */
2223
protected $configuration;

Tests/Doctrine/UserManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use FOS\UserBundle\Doctrine\UserManager;
1515
use FOS\UserBundle\Model\User;
16+
use PHPUnit\Framework\TestCase;
1617

17-
class UserManagerTest extends \PHPUnit_Framework_TestCase
18+
class UserManagerTest extends TestCase
1819
{
1920
const USER_CLASS = 'FOS\UserBundle\Tests\Doctrine\DummyUser';
2021

Tests/EventListener/AuthenticationListenerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
use FOS\UserBundle\Event\FilterUserResponseEvent;
1515
use FOS\UserBundle\EventListener\AuthenticationListener;
1616
use FOS\UserBundle\FOSUserEvents;
17+
use PHPUnit\Framework\TestCase;
1718
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1819

19-
class AuthenticationListenerTest extends \PHPUnit_Framework_TestCase
20+
class AuthenticationListenerTest extends TestCase
2021
{
2122
const FIREWALL_NAME = 'foo';
2223

Tests/EventListener/FlashListenerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313

1414
use FOS\UserBundle\EventListener\FlashListener;
1515
use FOS\UserBundle\FOSUserEvents;
16+
use PHPUnit\Framework\TestCase;
1617
use Symfony\Component\EventDispatcher\Event;
1718

18-
class FlashListenerTest extends \PHPUnit_Framework_TestCase
19+
class FlashListenerTest extends TestCase
1920
{
2021
/** @var Event */
2122
private $event;

0 commit comments

Comments
 (0)