1
0
Fork 0

Fix tests

pull/483/head
Jordi Boggiano 2012-03-20 14:37:14 +01:00
parent 81fdd790f2
commit 45b2165057
1 changed files with 3 additions and 3 deletions

View File

@ -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/',