<?php
-include_once __DIR__ . '/LocalFileTestCase.php';
+include_once __DIR__ . '/WebTestCase.php';
/**
* Tests for php files in the 'extras' directory
*
*/
-class ExtraFilesTest extends PhpXmlRpc_LocalFileTestCase
+class ExtraFilesTest extends PhpXmlRpc_WebTestCase
{
public function set_up()
{
$this->args = argParser::getArgs();
- $this->baseUrl = $this->args['HTTPSERVER'] . str_replace( '/demo/server/server.php', '/tests/', $this->args['HTTPURI'] );
+ $this->baseUrl = $this->args['HTTPSERVER'] . str_replace( '/demo/server/server.php', '/extras/', $this->args['HTTPURI'] );
$this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI'] );
}
{
$page = $this->request('verify_compat.php');
}
+
+ public function testVarDemo()
+ {
+ $this->baseUrl = str_replace('/extras/', '/demo/', $this->baseUrl);
+ $page = $this->request('vardemo.php');
+ }
}