function testHttps()
{
- global $HTTPSSERVER, $HTTPSURI, $HTTPSIGNOREPEER;
+ global $HTTPSSERVER, $HTTPSURI, $HTTPSIGNOREPEER, $HTTPSVERIFYHOST;
if(!function_exists('curl_init'))
{
$this->fail('CURL missing: cannot test https functionality');
$this->method = 'https';
$this->client->method = 'https';
$this->client->path = $HTTPSURI;
- $this->client->setSSLVerifyPeer( !$HTTPSIGNOREPEER );
- // silence warning with newish php versions
- $this->client->setSSLVerifyHost(2);
+ $this->client->setSSLVerifyPeer(!$HTTPSIGNOREPEER);
+ $this->client->setSSLVerifyHost($HTTPSVERIFYHOST);
$this->_runtests();
}
function testHttpsProxy()
{
- global $HTTPSSERVER, $HTTPSURI, $PROXYSERVER, $PROXYPORT, $NOPROXY;
+ global $HTTPSSERVER, $HTTPSURI, $HTTPSIGNOREPEER, $HTTPSVERIFYHOST, $PROXYSERVER, $PROXYPORT, $NOPROXY;
if(!function_exists('curl_init'))
{
$this->fail('CURL missing: cannot test https functionality');
$this->client->method = 'https';
$this->client->setProxy($PROXYSERVER, $PROXYPORT);
$this->client->path = $HTTPSURI;
+ $this->client->setSSLVerifyPeer(!$HTTPSIGNOREPEER);
+ $this->client->setSSLVerifyHost($HTTPSVERIFYHOST);
$this->_runtests();
}
$m=new xmlrpcmsg('dummy');
$r=$m->parseResponse($response);
$v=$r->faultString();
- $this->assertEquals('���àüè', $v);
+ $this->assertEquals('������', $v);
}
function testValidNumbers()