Fixed basic proxy test.

This commit is contained in:
Juan Basso 2010-12-15 01:54:37 -02:00
parent 99407282e5
commit 575da672b0

View file

@ -53,13 +53,13 @@ class BasicMethodTest extends CakeTestCase {
*/
public function testProxyAuthentication() {
$http = new HttpSocket();
$http->request['proxy'] = array(
$proxy = array(
'method' => 'Basic',
'user' => 'mark',
'pass' => 'secret'
);
BasicAuthentication::proxyAuthentication($http);
BasicAuthentication::proxyAuthentication($http, $proxy);
$this->assertEqual($http->request['header']['Proxy-Authorization'], 'Basic bWFyazpzZWNyZXQ=');
}