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 ;
2021
2122class PhpGeneratorDumperTest extends TestCase
2223{
24+ use ForwardCompatTestTrait;
25+
2326 /**
2427 * @var RouteCollection
2528 */
@@ -40,7 +43,7 @@ class PhpGeneratorDumperTest extends TestCase
4043 */
4144 private $ largeTestTmpFilepath ;
4245
43- protected function setUp ()
46+ private function doSetUp ()
4447 {
4548 parent ::setUp ();
4649
@@ -52,7 +55,7 @@ protected function setUp()
5255 @unlink ($ this ->largeTestTmpFilepath );
5356 }
5457
55- protected function tearDown ()
58+ private function doTearDown ()
5659 {
5760 parent ::tearDown ();
5861
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 \Routing \Annotation \Route ;
1516
1617class AnnotationClassLoaderTest extends AbstractAnnotationLoaderTest
1718{
19+ use ForwardCompatTestTrait;
20+
1821 protected $ loader ;
1922 private $ reader ;
2023
21- protected function setUp ()
24+ private function doSetUp ()
2225 {
2326 parent ::setUp ();
2427
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 ;
2122
2223class PhpMatcherDumperTest extends TestCase
2324{
25+ use ForwardCompatTestTrait;
26+
2427 /**
2528 * @var string
2629 */
@@ -31,15 +34,15 @@ class PhpMatcherDumperTest extends TestCase
3134 */
3235 private $ dumpPath ;
3336
34- protected function setUp ()
37+ private function doSetUp ()
3538 {
3639 parent ::setUp ();
3740
3841 $ this ->matcherClass = uniqid ('ProjectUrlMatcher ' );
3942 $ this ->dumpPath = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .'php_matcher. ' .$ this ->matcherClass .'.php ' ;
4043 }
4144
42- protected function tearDown ()
45+ private function doTearDown ()
4346 {
4447 parent ::tearDown ();
4548
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