Skip to content

Commit aa2bf3d

Browse files
committed
Remove use of ForwardCompatTrait
1 parent 53c529c commit aa2bf3d

18 files changed

+9
-63
lines changed

Tests/Annotation/RouteTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
namespace Symfony\Component\Routing\Tests\Annotation;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Routing\Annotation\Route;
1716

1817
class RouteTest extends TestCase
1918
{
20-
use ForwardCompatTestTrait;
21-
2219
public function testInvalidRouteParameter()
2320
{
2421
$this->expectException('BadMethodCallException');

Tests/Generator/Dumper/PhpGeneratorDumperTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Routing\Tests\Generator\Dumper;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Routing\Generator\Dumper\PhpGeneratorDumper;
1716
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1817
use Symfony\Component\Routing\RequestContext;
@@ -21,8 +20,6 @@
2120

2221
class PhpGeneratorDumperTest extends TestCase
2322
{
24-
use ForwardCompatTestTrait;
25-
2623
/**
2724
* @var RouteCollection
2825
*/
@@ -43,7 +40,7 @@ class PhpGeneratorDumperTest extends TestCase
4340
*/
4441
private $largeTestTmpFilepath;
4542

46-
private function doSetUp()
43+
protected function setUp()
4744
{
4845
parent::setUp();
4946

@@ -55,7 +52,7 @@ private function doSetUp()
5552
@unlink($this->largeTestTmpFilepath);
5653
}
5754

58-
private function doTearDown()
55+
protected function tearDown()
5956
{
6057
parent::tearDown();
6158

Tests/Generator/UrlGeneratorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Routing\Tests\Generator;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Routing\Generator\UrlGenerator;
1716
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1817
use Symfony\Component\Routing\RequestContext;
@@ -21,8 +20,6 @@
2120

2221
class UrlGeneratorTest extends TestCase
2322
{
24-
use ForwardCompatTestTrait;
25-
2623
public function testAbsoluteUrlWithPort80()
2724
{
2825
$routes = $this->getRoutes('test', new Route('/testing'));

Tests/Loader/AnnotationClassLoaderTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@
1111

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

14-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1514
use Symfony\Component\Routing\Annotation\Route;
1615

1716
class AnnotationClassLoaderTest extends AbstractAnnotationLoaderTest
1817
{
19-
use ForwardCompatTestTrait;
20-
2118
protected $loader;
2219
private $reader;
2320

24-
private function doSetUp()
21+
protected function setUp()
2522
{
2623
parent::setUp();
2724

Tests/Loader/AnnotationDirectoryLoaderTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@
1111

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

14-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1514
use Symfony\Component\Config\FileLocator;
1615
use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader;
1716

1817
class AnnotationDirectoryLoaderTest extends AbstractAnnotationLoaderTest
1918
{
20-
use ForwardCompatTestTrait;
21-
2219
protected $loader;
2320
protected $reader;
2421

25-
private function doSetUp()
22+
protected function setUp()
2623
{
2724
parent::setUp();
2825

Tests/Loader/AnnotationFileLoaderTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@
1111

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

14-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1514
use Symfony\Component\Config\FileLocator;
1615
use Symfony\Component\Routing\Annotation\Route;
1716
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
1817

1918
class AnnotationFileLoaderTest extends AbstractAnnotationLoaderTest
2019
{
21-
use ForwardCompatTestTrait;
22-
2320
protected $loader;
2421
protected $reader;
2522

26-
private function doSetUp()
23+
protected function setUp()
2724
{
2825
parent::setUp();
2926

Tests/Loader/DirectoryLoaderTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

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

14-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1514
use Symfony\Component\Config\FileLocator;
1615
use Symfony\Component\Config\Loader\LoaderResolver;
1716
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
@@ -21,12 +20,10 @@
2120

2221
class DirectoryLoaderTest extends AbstractAnnotationLoaderTest
2322
{
24-
use ForwardCompatTestTrait;
25-
2623
private $loader;
2724
private $reader;
2825

29-
private function doSetUp()
26+
protected function setUp()
3027
{
3128
parent::setUp();
3229

Tests/Loader/ObjectRouteLoaderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Routing\Loader\ObjectRouteLoader;
1716
use Symfony\Component\Routing\Route;
1817
use Symfony\Component\Routing\RouteCollection;
1918

2019
class ObjectRouteLoaderTest extends TestCase
2120
{
22-
use ForwardCompatTestTrait;
23-
2421
public function testLoadCallsServiceAndReturnsCollection()
2522
{
2623
$loader = new ObjectRouteLoaderForTest();

Tests/Loader/XmlFileLoaderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Config\FileLocator;
1716
use Symfony\Component\Routing\Loader\XmlFileLoader;
1817
use Symfony\Component\Routing\Tests\Fixtures\CustomXmlFileLoader;
1918

2019
class XmlFileLoaderTest extends TestCase
2120
{
22-
use ForwardCompatTestTrait;
23-
2421
public function testSupports()
2522
{
2623
$loader = new XmlFileLoader($this->getMockBuilder('Symfony\Component\Config\FileLocator')->getMock());

Tests/Loader/YamlFileLoaderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Routing\Tests\Loader;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Config\FileLocator;
1716
use Symfony\Component\Config\Resource\FileResource;
1817
use Symfony\Component\Routing\Loader\YamlFileLoader;
1918

2019
class YamlFileLoaderTest extends TestCase
2120
{
22-
use ForwardCompatTestTrait;
23-
2421
public function testSupports()
2522
{
2623
$loader = new YamlFileLoader($this->getMockBuilder('Symfony\Component\Config\FileLocator')->getMock());

0 commit comments

Comments
 (0)