Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
- trailing whitespace
  • Loading branch information
weierophinney committed Oct 31, 2013
1 parent efe1143 commit bf361b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ZendTest/Http/PhpEnvironment/RemoteAddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function testSetGetUseProxy()
$this->remoteAddress->setUseProxy(false);
$this->assertFalse($this->remoteAddress->getUseProxy());
}

public function testSetGetDefaultUseProxy()
{
$this->remoteAddress->setUseProxy();
Expand All @@ -83,7 +83,7 @@ public function testSetTrustedProxies()
public function testGetIpAddress()
{
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$this->assertEquals('127.0.0.1', $this->remoteAddress->getIpAddress());
$this->assertEquals('127.0.0.1', $this->remoteAddress->getIpAddress());
}

public function testGetIpAddressFromProxy()
Expand Down Expand Up @@ -122,9 +122,9 @@ public function testGetIpAddressFromProxyFakeData()
'192.168.0.10', '10.0.0.1', '10.0.0.2'
));
$_SERVER['REMOTE_ADDR'] = '192.168.0.10';
// 1.1.1.1 is the first IP address from the right not representing a known proxy server; as such, we
// 1.1.1.1 is the first IP address from the right not representing a known proxy server; as such, we
// must treat it as a client IP.
$_SERVER['HTTP_X_FORWARDED_FOR'] = '8.8.8.8, 10.0.0.2, 1.1.1.1, 10.0.0.1';
$this->assertEquals('1.1.1.1', $this->remoteAddress->getIpAddress());
}
}
}

0 comments on commit bf361b0

Please sign in to comment.