. */ require_once 'PHPUnit2/Framework/Test.php'; require_once 'phing/tasks/ext/phpunit2/PHPUnit2ResultFormatter.php'; /** * Prints short summary output of the test to Phing's logging system. * * @author Michiel Rook * @version $Id: SummaryPHPUnit2ResultFormatter.php 3076 2006-12-18 08:52:12Z fabien $ * @package phing.tasks.ext.phpunit2 * @since 2.1.0 */ class SummaryPHPUnit2ResultFormatter extends PHPUnit2ResultFormatter { function endTestSuite(PHPUnit2_Framework_TestSuite $suite) { parent::endTestSuite($suite); $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); $this->out->close(); } } function getExtension() { return NULL; } } ?>