fixed issue with PHP 5.3
This commit is contained in:
parent
afa4d524c2
commit
2a811427c0
@ -36,7 +36,7 @@ class WebProcessorTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testUseRequestClientIp()
|
public function testUseRequestClientIp()
|
||||||
{
|
{
|
||||||
Request::setTrustedProxies(['192.168.0.1']);
|
Request::setTrustedProxies(array('192.168.0.1'));
|
||||||
list($event, $server) = $this->createRequestEvent(array('X_FORWARDED_FOR' => '192.168.0.2'));
|
list($event, $server) = $this->createRequestEvent(array('X_FORWARDED_FOR' => '192.168.0.2'));
|
||||||
|
|
||||||
$processor = new WebProcessor();
|
$processor = new WebProcessor();
|
||||||
|
Reference in New Issue
Block a user