X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Ftestsuite.php;h=e5fb6d8d1dc1c4e430af51e0c35f0c7413993c2c;hb=2e4d7e8aedf960a3b5c5d0eeb29f4a1175142011;hp=39874ceabd3e03bdfe7bc94588ade006be852742;hpb=124ed97d9932c17211de7bc08bc42697437a1ae0;p=plcapi.git diff --git a/test/testsuite.php b/test/testsuite.php index 39874ce..e5fb6d8 100644 --- a/test/testsuite.php +++ b/test/testsuite.php @@ -774,7 +774,7 @@ class LocalHostMultiTests extends LocalhostTests function testHttps() { - global $HTTPSSERVER, $HTTPSURI, $HTTPSIGNOREPEER; + global $HTTPSSERVER, $HTTPSURI, $HTTPSIGNOREPEER, $HTTPSVERIFYHOST; if(!function_exists('curl_init')) { $this->fail('CURL missing: cannot test https functionality'); @@ -784,15 +784,14 @@ class LocalHostMultiTests extends LocalhostTests $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'); @@ -809,6 +808,8 @@ class LocalHostMultiTests extends LocalhostTests $this->client->method = 'https'; $this->client->setProxy($PROXYSERVER, $PROXYPORT); $this->client->path = $HTTPSURI; + $this->client->setSSLVerifyPeer(!$HTTPSIGNOREPEER); + $this->client->setSSLVerifyHost($HTTPSVERIFYHOST); $this->_runtests(); } @@ -888,7 +889,7 @@ class ParsingBugsTests extends PHPUnit_TestCase $m=new xmlrpcmsg('dummy'); $r=$m->parseResponse($response); $v=$r->faultString(); - $this->assertEquals('���àüè', $v); + $this->assertEquals('������', $v); } function testValidNumbers()