/** * testProxyAuthentication method * * @return void */ public function testProxyAuthentication() { $http = new HttpSocket(); $proxy = array('method' => 'Basic', 'user' => 'mark', 'pass' => 'secret'); BasicAuthentication::proxyAuthentication($http, $proxy); $this->assertEquals('Basic bWFyazpzZWNyZXQ=', $http->request['header']['Proxy-Authorization']); }
/** * Constructs the authentication type * * @param array $configData The configuration data for auth type instance */ public function __construct(array $configData = array()) { // initialize the supported adapter types $this->addSupportedAdapter(HtdigestAdapter::getType()); // initialize the instance parent::__construct($configData); }