@@ -46,7 +46,7 @@ public function testEmptyRoute()
46
46
47
47
public function testEmptyRouteInvoke ()
48
48
{
49
- $ request = new Request ([], [], [ 'route ' => '' , 'permanent ' => true ] );
49
+ $ request = new Request (array (), array (), array ( 'route ' => '' , 'permanent ' => true ) );
50
50
$ controller = new RedirectController ();
51
51
52
52
try {
@@ -56,7 +56,7 @@ public function testEmptyRouteInvoke()
56
56
$ this ->assertSame (410 , $ e ->getStatusCode ());
57
57
}
58
58
59
- $ request = new Request ([], [], [ 'route ' => '' , 'permanent ' => false ] );
59
+ $ request = new Request (array (), array (), array ( 'route ' => '' , 'permanent ' => false ) );
60
60
try {
61
61
$ controller ($ request );
62
62
$ this ->fail ('Expected Symfony\Component\HttpKernel\Exception\HttpException to be thrown ' );
@@ -137,7 +137,7 @@ public function testEmptyPath()
137
137
138
138
public function testEmptyPathInvoke ()
139
139
{
140
- $ request = new Request ([], [], [ 'path ' => '' , 'permanent ' => true ] );
140
+ $ request = new Request (array (), array (), array ( 'path ' => '' , 'permanent ' => true ) );
141
141
$ controller = new RedirectController ();
142
142
143
143
try {
@@ -147,7 +147,7 @@ public function testEmptyPathInvoke()
147
147
$ this ->assertSame (410 , $ e ->getStatusCode ());
148
148
}
149
149
150
- $ request = new Request ([], [], [ 'path ' => '' , 'permanent ' => false ] );
150
+ $ request = new Request (array (), array (), array ( 'path ' => '' , 'permanent ' => false ) );
151
151
try {
152
152
$ controller ($ request );
153
153
$ this ->fail ('Expected Symfony\Component\HttpKernel\Exception\HttpException to be thrown ' );
@@ -168,7 +168,7 @@ public function testFullURL()
168
168
169
169
public function testFullURLInvoke ()
170
170
{
171
- $ request = new Request ([], [], [ 'path ' => 'http://foo.bar/ ' ] );
171
+ $ request = new Request (array (), array (), array ( 'path ' => 'http://foo.bar/ ' ) );
172
172
$ controller = new RedirectController ();
173
173
$ returnResponse = $ controller ($ request );
174
174
0 commit comments