Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4b7969 commit 3b3d590Copy full SHA for 3b3d590
src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
@@ -204,6 +204,15 @@ public function testHeadersPossiblyResultingIn304AreNotAssignedToSubrequest()
204
$strategy->render('/', $request);
205
}
206
207
+ public function testLocalhostIsInTrustedProxies()
208
+ {
209
+ $strategy = new InlineFragmentRenderer($this->getKernel($this->returnValue(new Response())));
210
+ $request = Request::create('/');
211
+ $strategy->render('/', $request);
212
+
213
+ $this->assertTrue(in_array('127.0.0.1', Request::getTrustedProxies()));
214
+ }
215
216
/**
217
* Creates a Kernel expecting a request equals to $request
218
* Allows delta in comparison in case REQUEST_TIME changed by 1 second.
0 commit comments