Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
proxy
3
 
4
--FILE--
5
<?php
6
	require_once dirname(__FILE__) . '/../requestcore.class.php';
7
	$http = new RequestCore('http://github.com/skyzyx/requestcore/raw/master/_tests/test_request.txt', 'proxy://user:pass@hostname:80');
8
	var_dump($http->proxy);
9
?>
10
 
11
--EXPECT--
12
array(5) {
13
  ["scheme"]=>
14
  string(5) "proxy"
15
  ["host"]=>
16
  string(8) "hostname"
17
  ["port"]=>
18
  int(80)
19
  ["user"]=>
20
  string(4) "user"
21
  ["pass"]=>
22
  string(4) "pass"
23
}