@@ -125,16 +125,16 @@ public function testDumpWithSchemeRequirement()
125
125
126
126
$ projectUrlGenerator = new \SchemeUrlGenerator (new RequestContext ('/app.php ' ));
127
127
128
- $ absoluteUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), true );
129
- $ relativeUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), false );
128
+ $ absoluteUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface:: ABSOLUTE_URL );
129
+ $ relativeUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface:: ABSOLUTE_PATH );
130
130
131
131
$ this ->assertEquals ($ absoluteUrl , 'ftp://localhost/app.php/testing ' );
132
132
$ this ->assertEquals ($ relativeUrl , 'ftp://localhost/app.php/testing ' );
133
133
134
134
$ projectUrlGenerator = new \SchemeUrlGenerator (new RequestContext ('/app.php ' , 'GET ' , 'localhost ' , 'https ' ));
135
135
136
- $ absoluteUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), true );
137
- $ relativeUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), false );
136
+ $ absoluteUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface:: ABSOLUTE_URL );
137
+ $ relativeUrl = $ projectUrlGenerator ->generate ('Test1 ' , array (), UrlGeneratorInterface:: ABSOLUTE_PATH );
138
138
139
139
$ this ->assertEquals ($ absoluteUrl , 'https://localhost/app.php/testing ' );
140
140
$ this ->assertEquals ($ relativeUrl , '/app.php/testing ' );
0 commit comments