Skip to content

Commit accab89

Browse files
peterrehmfabpot
authored andcommitted
Update to PHPUnit namespaces
1 parent 95aea67 commit accab89

27 files changed

+55
-27
lines changed

Test/KernelTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Test;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Finder\Finder;
1516
use Symfony\Component\HttpKernel\KernelInterface;
1617

@@ -19,7 +20,7 @@
1920
*
2021
* @author Fabien Potencier <[email protected]>
2122
*/
22-
abstract class KernelTestCase extends \PHPUnit_Framework_TestCase
23+
abstract class KernelTestCase extends TestCase
2324
{
2425
protected static $class;
2526

Tests/Command/RouterDebugCommandTest.php

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

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Command;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Console\Application;
1516
use Symfony\Component\Console\Tester\CommandTester;
1617
use Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand;
1718
use Symfony\Component\Routing\Route;
1819
use Symfony\Component\Routing\RouteCollection;
1920

20-
class RouterDebugCommandTest extends \PHPUnit_Framework_TestCase
21+
class RouterDebugCommandTest extends TestCase
2122
{
2223
public function testDebugAllRoutes()
2324
{

Tests/Command/RouterMatchCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Command;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Console\Application;
1516
use Symfony\Component\Console\Tester\CommandTester;
1617
use Symfony\Bundle\FrameworkBundle\Command\RouterMatchCommand;
@@ -19,7 +20,7 @@
1920
use Symfony\Component\Routing\RouteCollection;
2021
use Symfony\Component\Routing\RequestContext;
2122

22-
class RouterMatchCommandTest extends \PHPUnit_Framework_TestCase
23+
class RouterMatchCommandTest extends TestCase
2324
{
2425
public function testWithMatchPath()
2526
{

Tests/Command/TranslationDebugCommandTest.php

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

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Command;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Console\Application;
1516
use Symfony\Component\Console\Tester\CommandTester;
1617
use Symfony\Bundle\FrameworkBundle\Command\TranslationDebugCommand;
1718
use Symfony\Component\Filesystem\Filesystem;
1819

19-
class TranslationDebugCommandTest extends \PHPUnit_Framework_TestCase
20+
class TranslationDebugCommandTest extends TestCase
2021
{
2122
private $fs;
2223
private $translationDir;

Tests/Command/TranslationUpdateCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Command;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Console\Application;
1516
use Symfony\Component\Console\Tester\CommandTester;
1617
use Symfony\Bundle\FrameworkBundle\Command\TranslationUpdateCommand;
1718
use Symfony\Component\Filesystem\Filesystem;
1819
use Symfony\Component\DependencyInjection;
1920
use Symfony\Component\HttpKernel;
2021

21-
class TranslationUpdateCommandTest extends \PHPUnit_Framework_TestCase
22+
class TranslationUpdateCommandTest extends TestCase
2223
{
2324
private $fs;
2425
private $translationDir;

Tests/Console/Descriptor/AbstractDescriptorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Console\Output\BufferedOutput;
1516
use Symfony\Component\DependencyInjection\Alias;
1617
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -20,7 +21,7 @@
2021
use Symfony\Component\Routing\Route;
2122
use Symfony\Component\Routing\RouteCollection;
2223

23-
abstract class AbstractDescriptorTest extends \PHPUnit_Framework_TestCase
24+
abstract class AbstractDescriptorTest extends TestCase
2425
{
2526
/** @dataProvider getDescribeRouteCollectionTestData */
2627
public function testDescribeRouteCollection(RouteCollection $routes, $expectedDescription)

Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php

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

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\DependencyInjection\Reference;
1516
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddCacheWarmerPass;
1617

17-
class AddCacheWarmerPassTest extends \PHPUnit_Framework_TestCase
18+
class AddCacheWarmerPassTest extends TestCase
1819
{
1920
public function testThatCacheWarmersAreProcessedInPriorityOrder()
2021
{

Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php

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

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass;
1516
use Symfony\Component\Console\Command\Command;
1617
use Symfony\Component\DependencyInjection\ContainerBuilder;
1718
use Symfony\Component\DependencyInjection\Definition;
1819
use Symfony\Component\HttpKernel\Bundle\Bundle;
1920

20-
class AddConsoleCommandPassTest extends \PHPUnit_Framework_TestCase
21+
class AddConsoleCommandPassTest extends TestCase
2122
{
2223
public function testProcess()
2324
{

Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
use PHPUnit\Framework\TestCase;
1213
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConstraintValidatorsPass;
1314

14-
class AddConstraintValidatorsPassTest extends \PHPUnit_Framework_TestCase
15+
class AddConstraintValidatorsPassTest extends TestCase
1516
{
1617
public function testThatConstraintValidatorServicesAreProcessed()
1718
{

Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php

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

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\DependencyInjection\ContainerBuilder;
1516
use Symfony\Component\DependencyInjection\Definition;
1617
use Symfony\Component\DependencyInjection\Reference;
1718
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass;
1819

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

0 commit comments

Comments
 (0)