@@ -41,6 +41,10 @@ public function testHandle()
4141 ->shouldReceive ('path ' )
4242 ->once ();
4343
44+ $ request
45+ ->shouldReceive ('query ' )
46+ ->once ();
47+
4448 $ this ->response
4549 ->shouldReceive ('getOriginalContent ' )
4650 ->once ()
@@ -84,6 +88,10 @@ public function testHandleNoAjax()
8488 ->shouldReceive ('path ' )
8589 ->once ();
8690
91+ $ request
92+ ->shouldReceive ('query ' )
93+ ->once ();
94+
8795 $ this ->response
8896 ->shouldReceive ('getOriginalContent ' )
8997 ->once ()
@@ -122,6 +130,10 @@ public function testHandleAjax()
122130 ->shouldReceive ('path ' )
123131 ->once ();
124132
133+ $ request
134+ ->shouldReceive ('query ' )
135+ ->once ();
136+
125137 $ this ->response
126138 ->shouldReceive ('getOriginalContent ' )
127139 ->once ()
@@ -165,6 +177,10 @@ public function testHandleException()
165177 ->shouldReceive ('path ' )
166178 ->once ();
167179
180+ $ request
181+ ->shouldReceive ('query ' )
182+ ->once ();
183+
168184 $ this ->response
169185 ->shouldReceive ('getOriginalContent ' )
170186 ->once ()
@@ -231,6 +247,7 @@ public function testGetCompilerUrl()
231247 ->andReturn (3000 );
232248
233249 $ this ->setInaccessible ($ stub , 'path ' , '/ ' );
250+ $ this ->setInaccessible ($ stub , 'query ' , []);
234251
235252 $ this ->assertEquals (
236253 $ this ->callInaccessibleMethod ($ stub , 'getCompilerUrl ' ),
@@ -251,6 +268,7 @@ public function testGetResponse()
251268 )->shouldAllowMockingProtectedMethods ();
252269
253270 $ this ->setInaccessible ($ mock , 'view ' , $ this ->view );
271+ $ this ->setInaccessible ($ mock , 'query ' , ['foo ' => 'bar-baz ' ]);
254272
255273 $ mock ->shouldReceive ('getCompilerUrl ' )->once ()->andReturn ('localhost ' );
256274
@@ -275,6 +293,7 @@ public function testGetResponse()
275293 ->andReturn (15 );
276294
277295 $ options = [
296+ 'query ' => ['foo ' => 'bar-baz ' ],
278297 'json ' => ['foo ' => 'bar ' ],
279298 'connect_timeout ' => 1 ,
280299 'timeout ' => 15
@@ -310,6 +329,7 @@ public function testGetResponseWithException()
310329 )->shouldAllowMockingProtectedMethods ();
311330
312331 $ this ->setInaccessible ($ mock , 'view ' , $ this ->view );
332+ $ this ->setInaccessible ($ mock , 'query ' , []);
313333
314334 $ mock ->shouldReceive ('getCompilerUrl ' )->once ()->andReturn ('localhost ' );
315335
@@ -334,6 +354,7 @@ public function testGetResponseWithException()
334354 ->andReturn (15 );
335355
336356 $ options = [
357+ 'query ' => [],
337358 'json ' => ['foo ' => 'bar ' ],
338359 'connect_timeout ' => 1 ,
339360 'timeout ' => 15
0 commit comments