From 85db22130ef9c7cf39c7a3b86fc2149f20c2fde0 Mon Sep 17 00:00:00 2001 From: Neil Ferreira Date: Thu, 31 May 2012 19:32:31 +0800 Subject: [PATCH] Since getClientIp() no longer takes a parameter, removed that old test Added a new test for HTTP_X_FORWARDED_FOR that starts with 'unknown, ' --- src/Symfony/Component/HttpFoundation/Tests/RequestTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index e6f5aff7e6..9d943ef0d4 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php @@ -552,7 +552,6 @@ class RequestTest extends \PHPUnit_Framework_TestCase { $request = new Request(); $this->assertEquals('', $request->getClientIp()); - $this->assertEquals('', $request->getClientIp(true)); $server = array('REMOTE_ADDR' => $remoteAddr); if (null !== $httpClientIp) { @@ -584,6 +583,7 @@ class RequestTest extends \PHPUnit_Framework_TestCase array('2620:0:1cfe:face:b00c::3', true, '::1', '2620:0:1cfe:face:b00c::3', null), array('2620:0:1cfe:face:b00c::3', true, '::1', null, '2620:0:1cfe:face:b00c::3, ::1'), array('88.88.88.88', true, '123.45.67.89', null, '88.88.88.88, 87.65.43.21, 127.0.0.1'), + array('88.88.88.88', true, '123.45.67.89', null, 'unknown, 88.88.88.88'), ); }