- URI=/demo/server/server.php
- HTTPSSERVER=localhost
- HTTPSURI=/demo/server/server.php
- - PROXY=localhost:8080
+ - PROXYSERVER=localhost:8080
# Travis currently compiles PHP with an oldish cURL/GnuTLS combination;
# to make the tests pass when Apache has a bogus SSL cert whe need the full set of options below
- HTTPSVERIFYHOST=0
public function testI8()
{
if (PHP_INT_SIZE == 4 ) {
- $this->markTestSkipped('did not find a locale which sets decimal separator to comma');
+ $this->markTestSkipped('Can not test i8 as php is compiled in 32 bit mode');
return;
}
new xmlrpcval('hello world', 'string'),
));
$r = $this->send($m, 0, true);
- $this->assertContains('hello world', $r->raw_data);
+ $this->assertStringContainsString('hello world', $r->raw_data);
}
public function testSendTwiceSameMsg()
{
if ($this->args['PROXYSERVER'] == '')
{
- $this->markTestSkipped('PROXY definition missing: cannot test proxy');
+ $this->markTestSkipped('PROXYSERVER definition missing: cannot test proxy');
return;
}
}
else if ($this->args['PROXYSERVER'] == '')
{
- $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1');
+ $this->markTestSkipped('PROXYSERVER definition missing: cannot test proxy w. http 1.1');
return;
}
}
else if ($this->args['PROXYSERVER'] == '')
{
- $this->markTestSkipped('PROXY definition missing: cannot test proxy w. https');
+ $this->markTestSkipped('PROXYSERVER definition missing: cannot test proxy w. https');
return;
}
else if ($this->args['HTTPSSERVER'] == '')
public function testDiscussServer()
{
$page = $this->request('server/discuss.php');
- $this->assertContains('<name>faultCode</name>', $page);
+ $this->assertStringContainsString('<name>faultCode</name>', $page);
$this->assertRegexp('#<int>10(5|3)</int>#', $page);
}
public function testProxyServer()
{
$page = $this->request('server/proxy.php');
- $this->assertContains('<name>faultCode</name>', $page);
+ $this->assertStringContainsString('<name>faultCode</name>', $page);
$this->assertRegexp('#<int>10(5|3)</int>#', $page);
}
}
if (!$emptyPageOk) {
$this->assertNotEquals('', $page);
}
- $this->assertNotContains('Fatal error', $page);
- $this->assertNotContains('Notice:', $page);
+ $this->assertStringNotContainsStringIgnoringCase('Fatal error', $page);
+ $this->assertStringNotContainsStringIgnoringCase('Notice:', $page);
return $page;
}
{
public static function getArgs()
{
- global $argv;
-
$args = array(
'DEBUG' => 0,
'LOCALSERVER' => 'localhost',
'HTTPSVERIFYHOST' => 2,
'SSLVERSION' => 0,
'PROXYSERVER' => null,
- 'NOPROXY' => false,
+ //'NOPROXY' => false,
'LOCALPATH' => __DIR__,
);
if (isset($SSLVERSION)) {
$args['SSLVERSION'] = (int)$SSLVERSION;
}
- if (isset($PROXY)) {
- $arr = explode(':', $PROXY);
+ if (isset($PROXYSERVER)) {
+ $arr = explode(':', $PROXYSERVER);
$args['PROXYSERVER'] = $arr[0];
if (count($arr) > 1) {
$args['PROXYPORT'] = $arr[1];
}
}
// used to silence testsuite warnings about proxy code not being tested
- if (isset($NOPROXY)) {
- $args['NOPROXY'] = true;
- }
+ //if (isset($NOPROXY)) {
+ // $args['NOPROXY'] = true;
+ //}
if (!isset($URI)) {
// GUESTIMATE the url of local demo server
// play nice to php 3 and 4-5 in retrieving URL of server.php