13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \HttpFoundation \Request ;
16
- use Symfony \Component \HttpFoundation \RequestMatcher ;
16
+ use Symfony \Component \HttpFoundation \RequestMatcherInterface ;
17
17
use Symfony \Component \Security \Http \Firewall \ExceptionListener ;
18
18
use Symfony \Component \Security \Http \FirewallMap ;
19
19
@@ -25,7 +25,7 @@ public function testGetListeners()
25
25
26
26
$ request = new Request ();
27
27
28
- $ notMatchingMatcher = $ this ->createMock (RequestMatcher ::class);
28
+ $ notMatchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
29
29
$ notMatchingMatcher
30
30
->expects ($ this ->once ())
31
31
->method ('matches ' )
@@ -35,7 +35,7 @@ public function testGetListeners()
35
35
36
36
$ map ->add ($ notMatchingMatcher , [function () {}]);
37
37
38
- $ matchingMatcher = $ this ->createMock (RequestMatcher ::class);
38
+ $ matchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
39
39
$ matchingMatcher
40
40
->expects ($ this ->once ())
41
41
->method ('matches ' )
@@ -47,7 +47,7 @@ public function testGetListeners()
47
47
48
48
$ map ->add ($ matchingMatcher , [$ theListener ], $ theException );
49
49
50
- $ tooLateMatcher = $ this ->createMock (RequestMatcher ::class);
50
+ $ tooLateMatcher = $ this ->createMock (RequestMatcherInterface ::class);
51
51
$ tooLateMatcher
52
52
->expects ($ this ->never ())
53
53
->method ('matches ' )
@@ -67,7 +67,7 @@ public function testGetListenersWithAnEntryHavingNoRequestMatcher()
67
67
68
68
$ request = new Request ();
69
69
70
- $ notMatchingMatcher = $ this ->createMock (RequestMatcher ::class);
70
+ $ notMatchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
71
71
$ notMatchingMatcher
72
72
->expects ($ this ->once ())
73
73
->method ('matches ' )
@@ -82,7 +82,7 @@ public function testGetListenersWithAnEntryHavingNoRequestMatcher()
82
82
83
83
$ map ->add (null , [$ theListener ], $ theException );
84
84
85
- $ tooLateMatcher = $ this ->createMock (RequestMatcher ::class);
85
+ $ tooLateMatcher = $ this ->createMock (RequestMatcherInterface ::class);
86
86
$ tooLateMatcher
87
87
->expects ($ this ->never ())
88
88
->method ('matches ' )
@@ -102,7 +102,7 @@ public function testGetListenersWithNoMatchingEntry()
102
102
103
103
$ request = new Request ();
104
104
105
- $ notMatchingMatcher = $ this ->createMock (RequestMatcher ::class);
105
+ $ notMatchingMatcher = $ this ->createMock (RequestMatcherInterface ::class);
106
106
$ notMatchingMatcher
107
107
->expects ($ this ->once ())
108
108
->method ('matches ' )
0 commit comments