From 2f04c0b02657b8d1fd69a11b7e948b3326d18c11 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Fri, 23 Aug 2019 10:49:36 +0200 Subject: [PATCH] Fix tests for the Routing component. --- src/Symfony/Component/Routing/Router.php | 4 ++-- .../Component/Routing/Tests/Loader/ObjectLoaderTest.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Routing/Router.php b/src/Symfony/Component/Routing/Router.php index 47df4210c3036..9d583315e2559 100644 --- a/src/Symfony/Component/Routing/Router.php +++ b/src/Symfony/Component/Routing/Router.php @@ -271,9 +271,9 @@ public function matchRequest(Request $request) } /** - * Gets the UrlMatcher instance associated with this Router. + * Gets the UrlMatcher or RequestMatcher instance associated with this Router. * - * @return UrlMatcherInterface A UrlMatcherInterface instance + * @return UrlMatcherInterface|RequestMatcherInterface */ public function getMatcher() { diff --git a/src/Symfony/Component/Routing/Tests/Loader/ObjectLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/ObjectLoaderTest.php index 6c93facefe69c..cec1fa422cb22 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/ObjectLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/ObjectLoaderTest.php @@ -62,6 +62,9 @@ public function getBadResourceStrings() ]; } + /** + * @group legacy + */ public function testExceptionOnNoObjectReturned() { $this->expectException('LogicException');