@@ -60,10 +60,6 @@ public function getGenerateAbsoluteUrlData()
6060 */
6161 public function testGenerateAbsoluteUrlWithRequestContext ($ path , $ baseUrl , $ host , $ scheme , $ httpPort , $ httpsPort , $ expected )
6262 {
63- if (!class_exists (RequestContext::class)) {
64- $ this ->markTestSkipped ('The Routing component is needed to run tests that depend on its request context. ' );
65- }
66-
6763 $ requestContext = new RequestContext ($ baseUrl , 'GET ' , $ host , $ scheme , $ httpPort , $ httpsPort , $ path );
6864 $ extension = new HttpFoundationExtension (new UrlHelper (new RequestStack (), $ requestContext ));
6965
@@ -75,10 +71,6 @@ public function testGenerateAbsoluteUrlWithRequestContext($path, $baseUrl, $host
7571 */
7672 public function testGenerateAbsoluteUrlWithoutRequestAndRequestContext ($ path )
7773 {
78- if (!class_exists (RequestContext::class)) {
79- $ this ->markTestSkipped ('The Routing component is needed to run tests that depend on its request context. ' );
80- }
81-
8274 $ extension = new HttpFoundationExtension (new UrlHelper (new RequestStack ()));
8375
8476 $ this ->assertEquals ($ path , $ extension ->generateAbsoluteUrl ($ path ));
@@ -118,10 +110,6 @@ public function testGenerateAbsoluteUrlWithScriptFileName()
118110 */
119111 public function testGenerateRelativePath ($ expected , $ path , $ pathinfo )
120112 {
121- if (!method_exists (Request::class, 'getRelativeUriForPath ' )) {
122- $ this ->markTestSkipped ('Your version of Symfony HttpFoundation is too old. ' );
123- }
124-
125113 $ stack = new RequestStack ();
126114 $ stack ->push (Request::create ($ pathinfo ));
127115 $ extension = new HttpFoundationExtension (new UrlHelper ($ stack ));
0 commit comments