close Warning: Can't use blame annotator:
svn blame failed on trunk/server/www/vendors/simpletest/test/remote_test.php: ("Can't find a temporary directory: Internal error", 20014)

source: trunk/server/www/vendors/simpletest/test/remote_test.php @ 6

Last change on this file since 6 was 6, checked in by sander, 12 years ago

Added SimpleTest? test framework

File size: 747 bytes
RevLine 
1<?php
2// $Id: remote_test.php 1505 2007-04-30 23:39:59Z lastcraft $
3require_once('../remote.php');
4require_once('../reporter.php');
5
6// The following URL will depend on your own installation.
7if (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'));
16if (SimpleReporter::inCli()) {
17    exit ($test->run(new TextReporter()) ? 0 : 1);
18}
19$test->run(new HtmlReporter());
20?>
Note: See TracBrowser for help on using the repository browser.