summaryrefslogtreecommitdiff
path: root/_test/lib
diff options
context:
space:
mode:
Diffstat (limited to '_test/lib')
-rw-r--r--_test/lib/cli_reporter.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/_test/lib/cli_reporter.php b/_test/lib/cli_reporter.php
index a65112a34..e83911c73 100644
--- a/_test/lib/cli_reporter.php
+++ b/_test/lib/cli_reporter.php
@@ -23,6 +23,7 @@ if (version_compare(phpversion(), '4.3.0', '<') ||
class CLIReporter extends SimpleReporter {
var $faildetail_separator = ST_FAILDETAIL_SEPARATOR;
+ var $_failinfo;
function CLIReporter($faildetail_separator = NULL) {
$this->SimpleReporter();
@@ -54,6 +55,10 @@ class CLIReporter extends SimpleReporter {
parent::paintFail($message);
fwrite(STDERR, 'FAIL' . $this->faildetail_separator .
$this->_paintTestFailDetail($message));
+ if($this->_failinfo){
+ fwrite(STDERR, ' additional info was: '.$this->_failinfo."\n");
+ $this->_failinfo = '';
+ }
}
/**
@@ -66,6 +71,16 @@ class CLIReporter extends SimpleReporter {
}
/**
+ * Handle failinfo message
+ */
+ function paintSignal($type,$message) {
+ parent::paintSignal($type,$message);
+ if($type = 'failinfo') $this->_failinfo = $message;
+ }
+
+
+
+ /**
* Paint a footer with test case name, timestamp, counts of fails and
* exceptions.
*/