Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Pass in a proxy DSN string, and process it with prep_request() (without firing the request).
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');
8
	$http->set_proxy('proxy://user:pass@hostname:80');
9
	$http->prep_request();
10
 
11
	var_dump($http->proxy);
12
 
13
	/*#block:["require_once"]*/
14
?>
15
 
16
--EXPECT--
17
array(5) {
18
  ["scheme"]=>
19
  string(5) "proxy"
20
  ["host"]=>
21
  string(8) "hostname"
22
  ["port"]=>
23
  int(80)
24
  ["user"]=>
25
  string(4) "user"
26
  ["pass"]=>
27
  string(4) "pass"
28
}