mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 20:59:55 +09:00
#17528788 : unittest framework added
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6001 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ea7c87ec0d
commit
7619bce790
99 changed files with 31041 additions and 0 deletions
20
tests/simpletest/test/remote_test.php
Normal file
20
tests/simpletest/test/remote_test.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
// $Id: remote_test.php 1505 2007-04-30 23:39:59Z lastcraft $
|
||||
require_once('../remote.php');
|
||||
require_once('../reporter.php');
|
||||
|
||||
// The following URL will depend on your own installation.
|
||||
if (isset($_SERVER['SCRIPT_URI'])) {
|
||||
$base_uri = $_SERVER['SCRIPT_URI'];
|
||||
} elseif (isset($_SERVER['HTTP_HOST']) && isset($_SERVER['PHP_SELF'])) {
|
||||
$base_uri = 'http://'. $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
|
||||
};
|
||||
$test_url = str_replace('remote_test.php', 'visual_test.php', $base_uri);
|
||||
|
||||
$test = &new TestSuite('Remote tests');
|
||||
$test->addTestCase(new RemoteTestCase($test_url . '?xml=yes', $test_url . '?xml=yes&dry=yes'));
|
||||
if (SimpleReporter::inCli()) {
|
||||
exit ($test->run(new TextReporter()) ? 0 : 1);
|
||||
}
|
||||
$test->run(new HtmlReporter());
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue