Skip to content

Commit

Permalink
Fixed basic proxy test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Dec 15, 2010
1 parent 9940728 commit 575da67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/http/basic_authentication.test.php
Expand Up @@ -53,13 +53,13 @@ public function testAuthentication() {
*/
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=');
}

Expand Down

0 comments on commit 575da67

Please sign in to comment.