@@ -24,10 +24,10 @@ class UrlMatcherTest extends CmfUnitTestCase
24
24
25
25
public function setUp ()
26
26
{
27
- $ this ->routeDocument = $ this ->buildMock ('Symfony \\ Cmf \\ Component \\ Routing \\ Tests \\ Routing \ \RouteMock ' , array ('getDefaults ' , 'getRouteKey ' , 'compile ' ));
28
- $ this ->routeCompiled = $ this ->buildMock ('Symfony \\ Component \\ Routing \ \CompiledRoute ' );
27
+ $ this ->routeDocument = $ this ->buildMock ('Symfony\Cmf\Component\Routing\Tests\Routing\RouteMock ' , array ('getDefaults ' , 'getRouteKey ' , 'compile ' ));
28
+ $ this ->routeCompiled = $ this ->buildMock ('Symfony\Component\Routing\CompiledRoute ' );
29
29
30
- $ this ->context = $ this ->buildMock ('Symfony \\ Component \\ Routing \ \RequestContext ' );
30
+ $ this ->context = $ this ->buildMock ('Symfony\Component\Routing\RequestContext ' );
31
31
$ this ->request = Request::create ($ this ->url );
32
32
33
33
$ this ->matcher = new UrlMatcher (new RouteCollection (), $ this ->context );
@@ -51,7 +51,7 @@ public function doTestMatchRouteKey($routeKey)
51
51
;
52
52
$ this ->routeCompiled ->expects ($ this ->atLeastOnce ())
53
53
->method ('getRegex ' )
54
- ->will ($ this ->returnValue ('# ' .str_replace ('/ ' , '\\ / ' , $ this ->url ).'# ' ))
54
+ ->will ($ this ->returnValue ('# ' .str_replace ('/ ' , '\/ ' , $ this ->url ).'# ' ))
55
55
;
56
56
$ this ->routeDocument ->expects ($ this ->atLeastOnce ())
57
57
->method ('compile ' )
@@ -66,12 +66,12 @@ public function doTestMatchRouteKey($routeKey)
66
66
->will ($ this ->returnValue (array ('foo ' => 'bar ' )))
67
67
;
68
68
69
- $ mockCompiled = $ this ->buildMock ('Symfony \\ Component \\ Routing \ \CompiledRoute ' );
69
+ $ mockCompiled = $ this ->buildMock ('Symfony\Component\Routing\CompiledRoute ' );
70
70
$ mockCompiled ->expects ($ this ->any ())
71
71
->method ('getStaticPrefix ' )
72
72
->will ($ this ->returnValue ('/no/match ' ))
73
73
;
74
- $ mockRoute = $ this ->getMockBuilder ('Symfony \\ Component \\ Routing \ \Route ' )->disableOriginalConstructor ()->getMock ();
74
+ $ mockRoute = $ this ->getMockBuilder ('Symfony\Component\Routing\Route ' )->disableOriginalConstructor ()->getMock ();
75
75
$ mockRoute ->expects ($ this ->any ())
76
76
->method ('compile ' )
77
77
->will ($ this ->returnValue ($ mockCompiled ))
@@ -100,9 +100,9 @@ public function testMatchNoRouteObject()
100
100
;
101
101
$ this ->routeCompiled ->expects ($ this ->atLeastOnce ())
102
102
->method ('getRegex ' )
103
- ->will ($ this ->returnValue ('# ' .str_replace ('/ ' , '\\ / ' , $ this ->url ).'# ' ))
103
+ ->will ($ this ->returnValue ('# ' .str_replace ('/ ' , '\/ ' , $ this ->url ).'# ' ))
104
104
;
105
- $ this ->routeDocument = $ this ->getMockBuilder ('Symfony \\ Component \\ Routing \ \Route ' )->disableOriginalConstructor ()->getMock ();
105
+ $ this ->routeDocument = $ this ->getMockBuilder ('Symfony\Component\Routing\Route ' )->disableOriginalConstructor ()->getMock ();
106
106
$ this ->routeDocument ->expects ($ this ->atLeastOnce ())
107
107
->method ('compile ' )
108
108
->will ($ this ->returnValue ($ this ->routeCompiled ))
@@ -115,12 +115,12 @@ public function testMatchNoRouteObject()
115
115
->will ($ this ->returnValue (array ('foo ' => 'bar ' )))
116
116
;
117
117
118
- $ mockCompiled = $ this ->buildMock ('Symfony \\ Component \\ Routing \ \CompiledRoute ' );
118
+ $ mockCompiled = $ this ->buildMock ('Symfony\Component\Routing\CompiledRoute ' );
119
119
$ mockCompiled ->expects ($ this ->any ())
120
120
->method ('getStaticPrefix ' )
121
121
->will ($ this ->returnValue ('/no/match ' ))
122
122
;
123
- $ mockRoute = $ this ->getMockBuilder ('Symfony \\ Component \\ Routing \ \Route ' )->disableOriginalConstructor ()->getMock ();
123
+ $ mockRoute = $ this ->getMockBuilder ('Symfony\Component\Routing\Route ' )->disableOriginalConstructor ()->getMock ();
124
124
$ mockRoute ->expects ($ this ->any ())
125
125
->method ('compile ' )
126
126
->will ($ this ->returnValue ($ mockCompiled ))
0 commit comments