*/
function _runtests()
{
+ $unsafeMethods = array('testHttps', 'testCatchExceptions', 'testUtf8Method');
foreach(get_class_methods('LocalhostTest') as $method)
{
- if(strpos($method, 'test') === 0 && $method != 'testHttps' && $method != 'testCatchExceptions')
+ if(strpos($method, 'test') === 0 && !in_array($method, $unsafeMethods))
{
if (!isset(self::$failed_tests[$method]))
$this->$method();
$this->method = 'https';
$this->client->method = 'https';
$this->client->path = $this->args['HTTPSURI'];
- $this->client->setSSLVerifyPeer( !$this->args['HTTPSIGNOREPEER'] );
- $this->client->setSSLVerifyHost($this->args['HTTPSVERIFYHOST'] );
+ $this->client->setSSLVerifyPeer(!$this->args['HTTPSIGNOREPEER']);
+ $this->client->setSSLVerifyHost($this->args['HTTPSVERIFYHOST']);
+ $this->client->setSSLVersion($this->args['SSLVERSION']);
$this->_runtests();
}
$this->client->method = 'https';
$this->client->setProxy($this->args['PROXYSERVER'], $this->args['PROXYPORT']);
$this->client->path = $this->args['HTTPSURI'];
- $this->client->setSSLVerifyPeer( !$this->args['HTTPSIGNOREPEER'] );
- $this->client->setSSLVerifyHost($this->args['HTTPSVERIFYHOST'] );
+ $this->client->setSSLVerifyPeer(!$this->args['HTTPSIGNOREPEER']);
+ $this->client->setSSLVerifyHost($this->args['HTTPSVERIFYHOST']);
+ $this->client->setSSLVersion($this->args['SSLVERSION']);
$this->_runtests();
}