From 45b2165057013f9d7d251a9c4e7dec0375568e02 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 20 Mar 2012 14:37:14 +0100 Subject: [PATCH] Fix tests --- tests/Composer/Test/Util/StreamContextFactoryTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/Util/StreamContextFactoryTest.php b/tests/Composer/Test/Util/StreamContextFactoryTest.php index eab6e7936..8429d078b 100644 --- a/tests/Composer/Test/Util/StreamContextFactoryTest.php +++ b/tests/Composer/Test/Util/StreamContextFactoryTest.php @@ -57,13 +57,13 @@ class StreamContextFactoryTest extends \PHPUnit_Framework_TestCase public function testHttpProxy() { - $_SERVER['HTTP_PROXY'] = 'http://username:password@proxyserver.net:port/'; - $_SERVER['http_proxy'] = 'http://proxyserver/'; + $_SERVER['http_proxy'] = 'http://username:password@proxyserver.net:port/'; + $_SERVER['HTTP_PROXY'] = 'http://proxyserver/'; $context = StreamContextFactory::getContext(array('http' => array('method' => 'GET'))); $options = stream_context_get_options($context); - $this->assertSame('http://proxyserver/', $_SERVER['http_proxy']); + $this->assertSame('http://proxyserver/', $_SERVER['HTTP_PROXY']); $this->assertEquals(array('http' => array( 'proxy' => 'tcp://username:password@proxyserver.net:port/',