1313
1414use PHPUnit \Framework \TestCase ;
1515use Symfony \Component \HttpFoundation \Request ;
16- use Symfony \Component \HttpFoundation \RequestMatcher ;
16+ use Symfony \Component \HttpFoundation \RequestMatcherInterface ;
1717use Symfony \Component \Security \Http \Firewall \ExceptionListener ;
1818use Symfony \Component \Security \Http \FirewallMap ;
1919
@@ -25,7 +25,7 @@ public function testGetListeners()
2525
2626 $ request = new Request ();
2727
28- $ notMatchingMatcher = $ this ->createMock (RequestMatcher ::class);
28+ $ notMatchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
2929 $ notMatchingMatcher
3030 ->expects ($ this ->once ())
3131 ->method ('matches ' )
@@ -35,7 +35,7 @@ public function testGetListeners()
3535
3636 $ map ->add ($ notMatchingMatcher , [function () {}]);
3737
38- $ matchingMatcher = $ this ->createMock (RequestMatcher ::class);
38+ $ matchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
3939 $ matchingMatcher
4040 ->expects ($ this ->once ())
4141 ->method ('matches ' )
@@ -47,7 +47,7 @@ public function testGetListeners()
4747
4848 $ map ->add ($ matchingMatcher , [$ theListener ], $ theException );
4949
50- $ tooLateMatcher = $ this ->createMock (RequestMatcher ::class);
50+ $ tooLateMatcher = $ this ->createMock (RequestMatcherInterface ::class);
5151 $ tooLateMatcher
5252 ->expects ($ this ->never ())
5353 ->method ('matches ' )
@@ -67,7 +67,7 @@ public function testGetListenersWithAnEntryHavingNoRequestMatcher()
6767
6868 $ request = new Request ();
6969
70- $ notMatchingMatcher = $ this ->createMock (RequestMatcher ::class);
70+ $ notMatchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
7171 $ notMatchingMatcher
7272 ->expects ($ this ->once ())
7373 ->method ('matches ' )
@@ -82,7 +82,7 @@ public function testGetListenersWithAnEntryHavingNoRequestMatcher()
8282
8383 $ map ->add (null , [$ theListener ], $ theException );
8484
85- $ tooLateMatcher = $ this ->createMock (RequestMatcher ::class);
85+ $ tooLateMatcher = $ this ->createMock (RequestMatcherInterface ::class);
8686 $ tooLateMatcher
8787 ->expects ($ this ->never ())
8888 ->method ('matches ' )
@@ -102,7 +102,7 @@ public function testGetListenersWithNoMatchingEntry()
102102
103103 $ request = new Request ();
104104
105- $ notMatchingMatcher = $ this ->createMock (RequestMatcher ::class);
105+ $ notMatchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
106106 $ notMatchingMatcher
107107 ->expects ($ this ->once ())
108108 ->method ('matches ' )
0 commit comments