Skip to content

Commit a7392c4

Browse files
peterrehmfabpot
authored andcommitted
Update to PHPUnit namespaces
1 parent 0333f0c commit a7392c4

22 files changed

+45
-22
lines changed

Tests/Annotation/RouteTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Annotation;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Routing\Annotation\Route;
1516

16-
class RouteTest extends \PHPUnit_Framework_TestCase
17+
class RouteTest extends TestCase
1718
{
1819
/**
1920
* @expectedException \BadMethodCallException

Tests/CompiledRouteTest.php

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

1212
namespace Symfony\Component\Routing\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Routing\CompiledRoute;
1516

16-
class CompiledRouteTest extends \PHPUnit_Framework_TestCase
17+
class CompiledRouteTest extends TestCase
1718
{
1819
public function testAccessors()
1920
{

Tests/Generator/Dumper/PhpGeneratorDumperTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Generator\Dumper;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1516
use Symfony\Component\Routing\RouteCollection;
1617
use Symfony\Component\Routing\Route;
1718
use Symfony\Component\Routing\Generator\Dumper\PhpGeneratorDumper;
1819
use Symfony\Component\Routing\RequestContext;
1920

20-
class PhpGeneratorDumperTest extends \PHPUnit_Framework_TestCase
21+
class PhpGeneratorDumperTest extends TestCase
2122
{
2223
/**
2324
* @var RouteCollection

Tests/Generator/UrlGeneratorTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Generator;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Routing\RouteCollection;
1516
use Symfony\Component\Routing\Route;
1617
use Symfony\Component\Routing\Generator\UrlGenerator;
1718
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1819
use Symfony\Component\Routing\RequestContext;
1920

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

Tests/Loader/AbstractAnnotationLoaderTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

14-
abstract class AbstractAnnotationLoaderTest extends \PHPUnit_Framework_TestCase
14+
use PHPUnit\Framework\TestCase;
15+
16+
abstract class AbstractAnnotationLoaderTest extends TestCase
1517
{
1618
public function getReader()
1719
{

Tests/Loader/ClosureLoaderTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Routing\Loader\ClosureLoader;
1516
use Symfony\Component\Routing\Route;
1617
use Symfony\Component\Routing\RouteCollection;
1718

18-
class ClosureLoaderTest extends \PHPUnit_Framework_TestCase
19+
class ClosureLoaderTest extends TestCase
1920
{
2021
public function testSupports()
2122
{

Tests/Loader/PhpFileLoaderTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Config\FileLocator;
1516
use Symfony\Component\Routing\Loader\PhpFileLoader;
1617

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

Tests/Loader/XmlFileLoaderTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Config\FileLocator;
1516
use Symfony\Component\Routing\Loader\XmlFileLoader;
1617
use Symfony\Component\Routing\Tests\Fixtures\CustomXmlFileLoader;
1718

18-
class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
19+
class XmlFileLoaderTest extends TestCase
1920
{
2021
public function testSupports()
2122
{

Tests/Loader/YamlFileLoaderTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Config\FileLocator;
1516
use Symfony\Component\Routing\Loader\YamlFileLoader;
1617
use Symfony\Component\Config\Resource\FileResource;
1718

18-
class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
19+
class YamlFileLoaderTest extends TestCase
1920
{
2021
public function testSupports()
2122
{

Tests/Matcher/Dumper/DumperCollectionTest.php

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

1212
namespace Symfony\Component\Routing\Tests\Matcher\Dumper;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\Routing\Matcher\Dumper\DumperCollection;
1516

16-
class DumperCollectionTest extends \PHPUnit_Framework_TestCase
17+
class DumperCollectionTest extends TestCase
1718
{
1819
public function testGetRoot()
1920
{

0 commit comments

Comments
 (0)