This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/simpletest/standalone.php
shish e124a9512d test from the command line
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1087 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-18 06:05:53 +00:00

27 lines
565 B
PHP

<?php
#require_once('lib/simpletest/autorun.php');
require_once('simpletest/web_tester.php');
require_once('simpletest/reporter.php');
require_once('config.php');
class SectionReporter extends TextReporter {
function paintGroupStart($name, $size) {
parent::paintGroupStart($name, $size);
print "\n** $name\n";
}
}
// }}} */
class AllTests extends TestSuite {
function AllTests() {
$this->TestSuite('All tests');
foreach(glob("ext/*/test.php") as $file) {
$this->addFile($file);
}
}
}
$all = new AllTests();
$all->run(new SectionReporter());
?>