detached_test.php 471B

123456789101112131415
  1. <?php
  2. // $Id: detached_test.php 1505 2007-04-30 23:39:59Z lastcraft $
  3. require_once('../detached.php');
  4. require_once('../reporter.php');
  5. // The following URL will depend on your own installation.
  6. $command = 'php ' . dirname(__FILE__) . '/visual_test.php xml';
  7. $test = &new TestSuite('Remote tests');
  8. $test->addTestCase(new DetachedTestCase($command));
  9. if (SimpleReporter::inCli()) {
  10. exit ($test->run(new TextReporter()) ? 0 : 1);
  11. }
  12. $test->run(new HtmlReporter());
  13. ?>