File: remote_test.php

package info (click to toggle)
php-simpletest 1.0.0-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 1,144 kB
  • ctags: 3,808
  • sloc: php: 13,921; xml: 681; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 601 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
    // $Id: remote_test.php,v 1.4 2004/04/07 19:12:13 lastcraft Exp $
    require_once('../remote.php');
    require_once('../reporter.php');
    
    // The following URL will depend on your own installation.
    $base_url = 'http://uno/simple/';
    
    $test = &new GroupTest('Remote tests');
    $test->addTestCase(new RemoteTestCase(
            $base_url . 'test/visual_test.php?xml=yes',
            $base_url . 'test/visual_test.php?xml=yes&dry=yes'));
    if (SimpleReporter::inCli()) {
        exit ($test->run(new XmlReporter()) ? 0 : 1);
    }
    $test->run(new HtmlReporter());
?>