2
// $Id: remote_test.php 1505 2007-04-30 23:39:59Z lastcraft $
3
require_once('../remote.php');
4
require_once('../reporter.php');
6
// The following URL will depend on your own installation.
7
if (isset($_SERVER['SCRIPT_URI'])) {
8
$base_uri = $_SERVER['SCRIPT_URI'];
9
} elseif (isset($_SERVER['HTTP_HOST']) && isset($_SERVER['PHP_SELF'])) {
10
$base_uri = 'http://'. $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
12
$test_url = str_replace('remote_test.php', 'visual_test.php', $base_uri);
14
$test = &new TestSuite('Remote tests');
15
$test->addTestCase(new RemoteTestCase($test_url . '?xml=yes', $test_url . '?xml=yes&dry=yes'));
16
if (SimpleReporter::inCli()) {
17
exit ($test->run(new TextReporter()) ? 0 : 1);
19
$test->run(new HtmlReporter());
b'\\ No newline at end of file'