print meta information before running tests from the console

This commit is contained in:
tmont 2009-06-14 00:22:30 +00:00
parent 258ae5874c
commit f829192408
2 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,11 @@
$this->publishResults($this->runTests());
}
public function printMeta() {
fwrite(STDOUT, Product::NAME . ' ' . Product::VERSION . ' (build date: ' . Product::DATE . ')' . "\n");
fwrite(STDOUT, ' by ' . Product::AUTHOR . "\n\n");
}
}
?>

View File

@ -45,6 +45,7 @@
$runner = new TestRunner(array(new TestSuite('Main Test Suite', $tests)), array(new ConsoleListener()));
$runner->printMeta();
$runner->runAndPublish();
exit(0);