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 1212namespace Symfony \Component \Routing \Tests \Generator \Dumper ;
1313
1414use PHPUnit \Framework \TestCase ;
15+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1516use Symfony \Component \Routing \Generator \Dumper \PhpGeneratorDumper ;
1617use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
1718use Symfony \Component \Routing \RequestContext ;
2324 */
2425class PhpGeneratorDumperTest extends TestCase
2526{
27+ use ForwardCompatTestTrait;
28+
2629 /**
2730 * @var RouteCollection
2831 */
@@ -43,7 +46,7 @@ class PhpGeneratorDumperTest extends TestCase
4346 */
4447 private $ largeTestTmpFilepath ;
4548
46- protected function setUp ()
49+ private function doSetUp ()
4750 {
4851 parent ::setUp ();
4952
@@ -55,7 +58,7 @@ protected function setUp()
5558 @unlink ($ this ->largeTestTmpFilepath );
5659 }
5760
58- protected function tearDown ()
61+ private function doTearDown ()
5962 {
6063 parent ::tearDown ();
6164
Original file line number Diff line number Diff line change 1313
1414use Doctrine \Common \Annotations \AnnotationReader ;
1515use Doctrine \Common \Annotations \AnnotationRegistry ;
16+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1617use Symfony \Component \Routing \Annotation \Route as RouteAnnotation ;
1718use Symfony \Component \Routing \Loader \AnnotationClassLoader ;
1819use Symfony \Component \Routing \Route ;
4041
4142class 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 {
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Routing \Tests \Loader ;
1313
14+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1415use Symfony \Component \Config \FileLocator ;
1516use Symfony \Component \Routing \Loader \AnnotationDirectoryLoader ;
1617
1718class 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
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Routing \Tests \Loader ;
1313
14+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1415use Symfony \Component \Config \FileLocator ;
1516use Symfony \Component \Routing \Annotation \Route ;
1617use Symfony \Component \Routing \Loader \AnnotationFileLoader ;
1718
1819class 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
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Routing \Tests \Loader ;
1313
14+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1415use Symfony \Component \Config \FileLocator ;
1516use Symfony \Component \Config \Loader \LoaderResolver ;
1617use Symfony \Component \Routing \Loader \AnnotationFileLoader ;
2021
2122class 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
Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Routing \Tests \Matcher \Dumper ;
1313
1414use PHPUnit \Framework \TestCase ;
15+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1516use Symfony \Component \Routing \Matcher \Dumper \PhpMatcherDumper ;
1617use Symfony \Component \Routing \Matcher \RedirectableUrlMatcherInterface ;
1718use Symfony \Component \Routing \Matcher \UrlMatcher ;
2425 */
2526class PhpMatcherDumperTest extends TestCase
2627{
28+ use ForwardCompatTestTrait;
29+
2730 /**
2831 * @var string
2932 */
@@ -34,15 +37,15 @@ class PhpMatcherDumperTest extends TestCase
3437 */
3538 private $ dumpPath ;
3639
37- protected function setUp ()
40+ private function doSetUp ()
3841 {
3942 parent ::setUp ();
4043
4144 $ this ->matcherClass = uniqid ('ProjectUrlMatcher ' );
4245 $ this ->dumpPath = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .'php_matcher. ' .$ this ->matcherClass .'.php ' ;
4346 }
4447
45- protected function tearDown ()
48+ private function doTearDown ()
4649 {
4750 parent ::tearDown ();
4851
Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Routing \Tests ;
1313
1414use PHPUnit \Framework \TestCase ;
15+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1516use Symfony \Component \HttpFoundation \Request ;
1617use Symfony \Component \Routing \RouteCollection ;
1718use Symfony \Component \Routing \Router ;
1819
1920class 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 ' );
You can’t perform that action at this time.
0 commit comments