From 32fc4d8758329d3f4356595770821cc4ece8a62b Mon Sep 17 00:00:00 2001 From: fturmel Date: Sun, 15 Sep 2013 09:52:15 -0400 Subject: [PATCH] HttpFoundation RequestTest - Fixed indentation and removed comments --- .../HttpFoundation/Tests/RequestTest.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index bb810a81dc..0741b9db6c 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php @@ -727,24 +727,21 @@ class RequestTest extends \PHPUnit_Framework_TestCase $this->assertEquals(80, $port, 'If X_FORWARDED_PROTO is set to http return 80.'); - //On $request = Request::create('http://example.com', 'GET', array(), array(), array(), array( - 'HTTP_X_FORWARDED_PROTO' => 'On' - )); + 'HTTP_X_FORWARDED_PROTO' => 'On' + )); $port = $request->getPort(); $this->assertEquals(443, $port, 'With only PROTO set and value is On, getPort() defaults to 443.'); - //1 $request = Request::create('http://example.com', 'GET', array(), array(), array(), array( - 'HTTP_X_FORWARDED_PROTO' => '1' - )); + 'HTTP_X_FORWARDED_PROTO' => '1' + )); $port = $request->getPort(); $this->assertEquals(443, $port, 'With only PROTO set and value is 1, getPort() defaults to 443.'); - //something-else $request = Request::create('http://example.com', 'GET', array(), array(), array(), array( - 'HTTP_X_FORWARDED_PROTO' => 'something-else' - )); + 'HTTP_X_FORWARDED_PROTO' => 'something-else' + )); $port = $request->getPort(); $this->assertEquals(80, $port, 'With only PROTO set and value is not recognized, getPort() defaults to 80.');