diff options
Diffstat (limited to 'vendors/simpletest/test/detached_test.php')
-rwxr-xr-x | vendors/simpletest/test/detached_test.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendors/simpletest/test/detached_test.php b/vendors/simpletest/test/detached_test.php new file mode 100755 index 000000000..06db8280b --- /dev/null +++ b/vendors/simpletest/test/detached_test.php @@ -0,0 +1,15 @@ +<?php +// $Id: detached_test.php 1505 2007-04-30 23:39:59Z lastcraft $ +require_once('../detached.php'); +require_once('../reporter.php'); + +// The following URL will depend on your own installation. +$command = 'php ' . dirname(__FILE__) . '/visual_test.php xml'; + +$test = &new TestSuite('Remote tests'); +$test->addTestCase(new DetachedTestCase($command)); +if (SimpleReporter::inCli()) { + exit ($test->run(new TextReporter()) ? 0 : 1); +} +$test->run(new HtmlReporter()); +?>
\ No newline at end of file |