~critecia/critecia/trunk

« back to all changes in this revision

Viewing changes to src/app/vendors/simpletest/test/remote_test.php

  • Committer: Christian A. Reiter
  • Date: 2011-11-16 20:08:35 UTC
  • Revision ID: christian.a.reiter@gmail.com-20111116200835-h3xx0ekm47lububw
fixed jQuery file links

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
// $Id: remote_test.php 1505 2007-04-30 23:39:59Z lastcraft $
3
 
require_once('../remote.php');
4
 
require_once('../reporter.php');
5
 
 
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'];
11
 
};
12
 
$test_url = str_replace('remote_test.php', 'visual_test.php', $base_uri);
13
 
 
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);
18
 
}
19
 
$test->run(new HtmlReporter());
20
 
?>
 
 
b'\\ No newline at end of file'