[pLog-svn] r4079 - plog/branches/lifetype-1.1.1/class/test/helpers
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Tue Oct 3 19:02:51 GMT 2006
Author: oscar
Date: 2006-10-03 19:02:51 +0000 (Tue, 03 Oct 2006)
New Revision: 4079
Modified:
plog/branches/lifetype-1.1.1/class/test/helpers/consolereporter.class.php
Log:
added some nicer failure reporting
Modified: plog/branches/lifetype-1.1.1/class/test/helpers/consolereporter.class.php
===================================================================
--- plog/branches/lifetype-1.1.1/class/test/helpers/consolereporter.class.php 2006-10-03 18:57:01 UTC (rev 4078)
+++ plog/branches/lifetype-1.1.1/class/test/helpers/consolereporter.class.php 2006-10-03 19:02:51 UTC (rev 4079)
@@ -95,12 +95,19 @@
*/
class ConsoleReporterListener extends PHPUnit_TestListener
{
- function startTest(&$test) {
- print( "Executing test [".ConsoleReporter::_cleanGroupName(get_class($test))."] ".$test->getName()." ... " );
- }
-
- function endTest(&$test) {
- print( "DONE\n" );
- }
+ function startTest(&$test) {
+ print( "Executing test [".ConsoleReporter::_cleanGroupName(get_class($test))."] ".$test->getName()." ... " );
+ }
+
+ function endTest(&$test) {
+ if( !$test->_failed )
+ print( "DONE\n" );
+ }
+
+ function addFailure(&$test)
+ {
+ print("FAILED\n");
+ $test->_failed = true;
+ }
}
?>
\ No newline at end of file
More information about the pLog-svn
mailing list