Skip to content

Commit f6fec04

Browse files
Merge branch '4.4'
* 4.4: [Cache] fix cs Make tests support phpunit 8 Allow Travis CI to build on PHP 7.4 [DI] Allow dumping the container in one file instead of many files
2 parents 0b8eb24 + 1e022fa commit f6fec04

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

Tests/Loader/AnnotationClassLoaderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Doctrine\Common\Annotations\AnnotationReader;
1515
use Doctrine\Common\Annotations\AnnotationRegistry;
16+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1617
use Symfony\Component\Routing\Annotation\Route as RouteAnnotation;
1718
use Symfony\Component\Routing\Loader\AnnotationClassLoader;
1819
use Symfony\Component\Routing\Route;
@@ -40,12 +41,14 @@
4041

4142
class AnnotationClassLoaderTest extends AbstractAnnotationLoaderTest
4243
{
44+
use ForwardCompatTestTrait;
45+
4346
/**
4447
* @var AnnotationClassLoader
4548
*/
4649
private $loader;
4750

48-
protected function setUp()
51+
private function doSetUp()
4952
{
5053
$reader = new AnnotationReader();
5154
$this->loader = new class($reader) extends AnnotationClassLoader {

Tests/Loader/AnnotationDirectoryLoaderTest.php

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

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

14+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1415
use Symfony\Component\Config\FileLocator;
1516
use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader;
1617

1718
class AnnotationDirectoryLoaderTest extends AbstractAnnotationLoaderTest
1819
{
20+
use ForwardCompatTestTrait;
21+
1922
protected $loader;
2023
protected $reader;
2124

22-
protected function setUp()
25+
private function doSetUp()
2326
{
2427
parent::setUp();
2528

Tests/Loader/AnnotationFileLoaderTest.php

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

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

14+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1415
use Symfony\Component\Config\FileLocator;
1516
use Symfony\Component\Routing\Annotation\Route;
1617
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
1718

1819
class AnnotationFileLoaderTest extends AbstractAnnotationLoaderTest
1920
{
21+
use ForwardCompatTestTrait;
22+
2023
protected $loader;
2124
protected $reader;
2225

23-
protected function setUp()
26+
private function doSetUp()
2427
{
2528
parent::setUp();
2629

Tests/Loader/DirectoryLoaderTest.php

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

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

14+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1415
use Symfony\Component\Config\FileLocator;
1516
use Symfony\Component\Config\Loader\LoaderResolver;
1617
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
@@ -20,10 +21,12 @@
2021

2122
class DirectoryLoaderTest extends AbstractAnnotationLoaderTest
2223
{
24+
use ForwardCompatTestTrait;
25+
2326
private $loader;
2427
private $reader;
2528

26-
protected function setUp()
29+
private function doSetUp()
2730
{
2831
parent::setUp();
2932

Tests/RouterTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@
1212
namespace Symfony\Component\Routing\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
use Symfony\Component\HttpFoundation\Request;
1617
use Symfony\Component\Routing\RouteCollection;
1718
use Symfony\Component\Routing\Router;
1819

1920
class RouterTest extends TestCase
2021
{
22+
use ForwardCompatTestTrait;
23+
2124
private $router = null;
2225

2326
private $loader = null;
2427

25-
protected function setUp()
28+
private function doSetUp()
2629
{
2730
$this->loader = $this->getMockBuilder('Symfony\Component\Config\Loader\LoaderInterface')->getMock();
2831
$this->router = new Router($this->loader, 'routing.yml');

0 commit comments

Comments
 (0)