. */ require_once 'phing/tasks/ext/simpletest/SimpleTestResultFormatter.php'; /** * Prints short summary output of the test to Phing's logging system. * * @author Michiel Rook * @version $Id: SimpleTestSummaryResultFormatter.php 905 2010-10-05 16:28:03Z mrook $ * @package phing.tasks.ext.simpletest * @since 2.2.0 */ class SimpleTestSummaryResultFormatter extends SimpleTestResultFormatter { function paintCaseEnd($test_name) { parent::paintCaseEnd($test_name); /* Only count suites where more than one test was run */ if ($this->getRunCount()) { $sb.= "Tests run: " . $this->getRunCount(); $sb.= ", Failures: " . $this->getFailureCount(); $sb.= ", Errors: " . $this->getErrorCount(); $sb.= ", Time elapsed: " . $this->getElapsedTime(); $sb.= " sec\n"; if ($this->out != NULL) { $this->out->write($sb); } } } }