File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Symfony/Component/HttpKernel/Tests/HttpCache Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1440,11 +1440,12 @@ public function testUsesOriginalRequestForSurrogate()
1440
1440
$ kernel = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\HttpKernelInterface ' )->getMock ();
1441
1441
$ store = $ this ->getMockBuilder ('Symfony\Component\HttpKernel\HttpCache\StoreInterface ' )->getMock ();
1442
1442
1443
+ $ that = $ this ;
1443
1444
$ kernel
1444
1445
->expects ($ this ->exactly (2 ))
1445
1446
->method ('handle ' )
1446
- ->willReturnCallback (function (Request $ request ) {
1447
- $ this ->assertSame ('127.0.0.1 ' , $ request ->server ->get ('REMOTE_ADDR ' ));
1447
+ ->willReturnCallback (function (Request $ request ) use ( $ that ) {
1448
+ $ that ->assertSame ('127.0.0.1 ' , $ request ->server ->get ('REMOTE_ADDR ' ));
1448
1449
1449
1450
return new Response ();
1450
1451
});
You can’t perform that action at this time.
0 commit comments