@@ -77,10 +77,10 @@ public function testDumpWithRoutes()
77
77
$ relativeUrlWithParameter = $ projectUrlGenerator ->generate ('Test ' , array ('foo ' => 'bar ' ), UrlGeneratorInterface::ABSOLUTE_PATH );
78
78
$ relativeUrlWithoutParameter = $ projectUrlGenerator ->generate ('Test2 ' , array (), UrlGeneratorInterface::ABSOLUTE_PATH );
79
79
80
- $ this ->assertEquals ($ absoluteUrlWithParameter , 'http://localhost/app.php/testing/bar ' );
81
- $ this ->assertEquals ($ absoluteUrlWithoutParameter , 'http://localhost/app.php/testing2 ' );
82
- $ this ->assertEquals ($ relativeUrlWithParameter , '/app.php/testing/bar ' );
83
- $ this ->assertEquals ($ relativeUrlWithoutParameter , '/app.php/testing2 ' );
80
+ $ this ->assertEquals ('http://localhost/app.php/testing/bar ' , $ absoluteUrlWithParameter );
81
+ $ this ->assertEquals ('http://localhost/app.php/testing2 ' , $ absoluteUrlWithoutParameter );
82
+ $ this ->assertEquals ('/app.php/testing/bar ' , $ relativeUrlWithParameter );
83
+ $ this ->assertEquals ('/app.php/testing2 ' , $ relativeUrlWithoutParameter );
84
84
}
85
85
86
86
public function testDumpWithTooManyRoutes ()
@@ -108,10 +108,10 @@ public function testDumpWithTooManyRoutes()
108
108
$ relativeUrlWithParameter = $ projectUrlGenerator ->generate ('Test ' , array ('foo ' => 'bar ' ), UrlGeneratorInterface::ABSOLUTE_PATH );
109
109
$ relativeUrlWithoutParameter = $ projectUrlGenerator ->generate ('Test2 ' , array (), UrlGeneratorInterface::ABSOLUTE_PATH );
110
110
111
- $ this ->assertEquals ($ absoluteUrlWithParameter , 'http://localhost/app.php/testing/bar ' );
112
- $ this ->assertEquals ($ absoluteUrlWithoutParameter , 'http://localhost/app.php/testing2 ' );
113
- $ this ->assertEquals ($ relativeUrlWithParameter , '/app.php/testing/bar ' );
114
- $ this ->assertEquals ($ relativeUrlWithoutParameter , '/app.php/testing2 ' );
111
+ $ this ->assertEquals ('http://localhost/app.php/testing/bar ' , $ absoluteUrlWithParameter );
112
+ $ this ->assertEquals ('http://localhost/app.php/testing2 ' , $ absoluteUrlWithoutParameter );
113
+ $ this ->assertEquals ('/app.php/testing/bar ' , $ relativeUrlWithParameter );
114
+ $ this ->assertEquals ('/app.php/testing2 ' , $ relativeUrlWithoutParameter );
115
115
}
116
116
117
117
/**
@@ -151,7 +151,7 @@ public function testDumpForRouteWithDefaults()
151
151
$ projectUrlGenerator = new \DefaultRoutesUrlGenerator (new RequestContext ());
152
152
$ url = $ projectUrlGenerator ->generate ('Test ' , array ());
153
153
154
- $ this ->assertEquals ($ url , '/testing ' );
154
+ $ this ->assertEquals ('/testing ' , $ url );
155
155
}
156
156
157
157
public function testDumpWithSchemeRequirement ()
@@ -166,15 +166,15 @@ public function testDumpWithSchemeRequirement()
166
166
$ absoluteUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface::ABSOLUTE_URL );
167
167
$ relativeUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface::ABSOLUTE_PATH );
168
168
169
- $ this ->assertEquals ($ absoluteUrl , 'ftp://localhost/app.php/testing ' );
170
- $ this ->assertEquals ($ relativeUrl , 'ftp://localhost/app.php/testing ' );
169
+ $ this ->assertEquals ('ftp://localhost/app.php/testing ' , $ absoluteUrl );
170
+ $ this ->assertEquals ('ftp://localhost/app.php/testing ' , $ relativeUrl );
171
171
172
172
$ projectUrlGenerator = new \SchemeUrlGenerator (new RequestContext ('/app.php ' , 'GET ' , 'localhost ' , 'https ' ));
173
173
174
174
$ absoluteUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface::ABSOLUTE_URL );
175
175
$ relativeUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface::ABSOLUTE_PATH );
176
176
177
- $ this ->assertEquals ($ absoluteUrl , 'https://localhost/app.php/testing ' );
178
- $ this ->assertEquals ($ relativeUrl , '/app.php/testing ' );
177
+ $ this ->assertEquals ('https://localhost/app.php/testing ' , $ absoluteUrl );
178
+ $ this ->assertEquals ('/app.php/testing ' , $ relativeUrl );
179
179
}
180
180
}
0 commit comments