File tree Expand file tree Collapse file tree 7 files changed +30
-9
lines changed Expand file tree Collapse file tree 7 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Routing \Tests \Generator \Dumper ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Routing \Generator \Dumper \PhpGeneratorDumper ;
16
17
use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
17
18
use Symfony \Component \Routing \RequestContext ;
20
21
21
22
class PhpGeneratorDumperTest extends TestCase
22
23
{
24
+ use ForwardCompatTestTrait;
25
+
23
26
/**
24
27
* @var RouteCollection
25
28
*/
@@ -40,7 +43,7 @@ class PhpGeneratorDumperTest extends TestCase
40
43
*/
41
44
private $ largeTestTmpFilepath ;
42
45
43
- protected function setUp ()
46
+ private function doSetUp ()
44
47
{
45
48
parent ::setUp ();
46
49
@@ -52,7 +55,7 @@ protected function setUp()
52
55
@unlink ($ this ->largeTestTmpFilepath );
53
56
}
54
57
55
- protected function tearDown ()
58
+ private function doTearDown ()
56
59
{
57
60
parent ::tearDown ();
58
61
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 \Routing \Annotation \Route ;
15
16
16
17
class AnnotationClassLoaderTest extends AbstractAnnotationLoaderTest
17
18
{
19
+ use ForwardCompatTestTrait;
20
+
18
21
protected $ loader ;
19
22
private $ reader ;
20
23
21
- protected function setUp ()
24
+ private function doSetUp ()
22
25
{
23
26
parent ::setUp ();
24
27
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 \Matcher \Dumper ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Routing \Matcher \Dumper \PhpMatcherDumper ;
16
17
use Symfony \Component \Routing \Matcher \RedirectableUrlMatcherInterface ;
17
18
use Symfony \Component \Routing \Matcher \UrlMatcher ;
21
22
22
23
class PhpMatcherDumperTest extends TestCase
23
24
{
25
+ use ForwardCompatTestTrait;
26
+
24
27
/**
25
28
* @var string
26
29
*/
@@ -31,15 +34,15 @@ class PhpMatcherDumperTest extends TestCase
31
34
*/
32
35
private $ dumpPath ;
33
36
34
- protected function setUp ()
37
+ private function doSetUp ()
35
38
{
36
39
parent ::setUp ();
37
40
38
41
$ this ->matcherClass = uniqid ('ProjectUrlMatcher ' );
39
42
$ this ->dumpPath = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .'php_matcher. ' .$ this ->matcherClass .'.php ' ;
40
43
}
41
44
42
- protected function tearDown ()
45
+ private function doTearDown ()
43
46
{
44
47
parent ::tearDown ();
45
48
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