print meta information before running tests from the console
This commit is contained in:
parent
258ae5874c
commit
f829192408
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -45,6 +45,7 @@
|
||||
|
||||
|
||||
$runner = new TestRunner(array(new TestSuite('Main Test Suite', $tests)), array(new ConsoleListener()));
|
||||
$runner->printMeta();
|
||||
$runner->runAndPublish();
|
||||
exit(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user