Skip to content

Commit d569c61

Browse files
committed
Update test data
1 parent 8c2ceec commit d569c61

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/RequestMock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RequestMock extends \Framework\HTTP\Request
3131
'HTTP_HOST' => 'domain.tld',
3232
'HTTP_REFERER' => 'http://domain.tld/contact.html',
3333
'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0',
34-
'HTTP_X_FORWARDED_FOR' => '45.167.104.99',
34+
'HTTP_X_FORWARDED_FOR' => '45.181.102.88',
3535
'HTTP_X_REQUEST_ID' => 'abc123',
3636
'HTTP_X_REQUESTED_WITH' => 'XMLHTTPREQUEST',
3737
'REMOTE_ADDR' => '192.168.1.100',

tests/RequestTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function testToString() : void
266266
'Host: domain.tld',
267267
'Referer: http://domain.tld/contact.html',
268268
'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0',
269-
'X-Forwarded-For: 45.167.104.99',
269+
'X-Forwarded-For: 45.181.102.88',
270270
'X-Request-ID: abc123',
271271
'X-Requested-With: XMLHTTPREQUEST',
272272
];
@@ -643,7 +643,7 @@ public function testHeaders() : void
643643
'host' => 'domain.tld',
644644
'referer' => 'http://domain.tld/contact.html',
645645
'user-agent' => 'Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0',
646-
'x-forwarded-for' => '45.167.104.99',
646+
'x-forwarded-for' => '45.181.102.88',
647647
'x-request-id' => 'abc123',
648648
'x-requested-with' => 'XMLHTTPREQUEST',
649649
], $this->request->getHeaders());
@@ -657,7 +657,7 @@ public function testIP() : void
657657
public function testIpKey() : void
658658
{
659659
$this->request->setIpKey('HTTP_X_FORWARDED_FOR');
660-
self::assertSame('45.167.104.99', $this->request->getIp());
660+
self::assertSame('45.181.102.88', $this->request->getIp());
661661
}
662662

663663
public function testIpKeyException() : void

0 commit comments

Comments
 (0)