File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use Doctrine \Common \Annotations \AnnotationReader ;
15
15
use Doctrine \Common \Annotations \AnnotationRegistry ;
16
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
16
17
use Symfony \Component \Routing \Annotation \Route as RouteAnnotation ;
17
18
use Symfony \Component \Routing \Loader \AnnotationClassLoader ;
18
19
use Symfony \Component \Routing \Route ;
40
41
41
42
class AnnotationClassLoaderTest extends AbstractAnnotationLoaderTest
42
43
{
44
+ use ForwardCompatTestTrait;
45
+
43
46
/**
44
47
* @var AnnotationClassLoader
45
48
*/
46
49
private $ loader ;
47
50
48
- protected function setUp ()
51
+ private function doSetUp ()
49
52
{
50
53
$ reader = new AnnotationReader ();
51
54
$ this ->loader = new class ($ reader ) extends AnnotationClassLoader {
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Routing \Tests \Loader ;
13
13
14
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
14
15
use Symfony \Component \Config \FileLocator ;
15
16
use Symfony \Component \Routing \Loader \AnnotationDirectoryLoader ;
16
17
17
18
class AnnotationDirectoryLoaderTest extends AbstractAnnotationLoaderTest
18
19
{
20
+ use ForwardCompatTestTrait;
21
+
19
22
protected $ loader ;
20
23
protected $ reader ;
21
24
22
- protected function setUp ()
25
+ private function doSetUp ()
23
26
{
24
27
parent ::setUp ();
25
28
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Routing \Tests \Loader ;
13
13
14
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
14
15
use Symfony \Component \Config \FileLocator ;
15
16
use Symfony \Component \Routing \Annotation \Route ;
16
17
use Symfony \Component \Routing \Loader \AnnotationFileLoader ;
17
18
18
19
class AnnotationFileLoaderTest extends AbstractAnnotationLoaderTest
19
20
{
21
+ use ForwardCompatTestTrait;
22
+
20
23
protected $ loader ;
21
24
protected $ reader ;
22
25
23
- protected function setUp ()
26
+ private function doSetUp ()
24
27
{
25
28
parent ::setUp ();
26
29
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Routing \Tests \Loader ;
13
13
14
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
14
15
use Symfony \Component \Config \FileLocator ;
15
16
use Symfony \Component \Config \Loader \LoaderResolver ;
16
17
use Symfony \Component \Routing \Loader \AnnotationFileLoader ;
20
21
21
22
class DirectoryLoaderTest extends AbstractAnnotationLoaderTest
22
23
{
24
+ use ForwardCompatTestTrait;
25
+
23
26
private $ loader ;
24
27
private $ reader ;
25
28
26
- protected function setUp ()
29
+ private function doSetUp ()
27
30
{
28
31
parent ::setUp ();
29
32
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Routing \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \HttpFoundation \Request ;
16
17
use Symfony \Component \Routing \RouteCollection ;
17
18
use Symfony \Component \Routing \Router ;
18
19
19
20
class RouterTest extends TestCase
20
21
{
22
+ use ForwardCompatTestTrait;
23
+
21
24
private $ router = null ;
22
25
23
26
private $ loader = null ;
24
27
25
- protected function setUp ()
28
+ private function doSetUp ()
26
29
{
27
30
$ this ->loader = $ this ->getMockBuilder ('Symfony\Component\Config\Loader\LoaderInterface ' )->getMock ();
28
31
$ this ->router = new Router ($ this ->loader , 'routing.yml ' );
You can’t perform that action at this time.
0 commit comments