[limb-svn] r6531 - 3.x/trunk/limb/tests_runner/src
svn at limb-project.com
svn at limb-project.com
Tue Nov 20 15:22:57 MSK 2007
Author: serega
Date: 2007-11-20 15:22:57 +0300 (Tue, 20 Nov 2007)
New Revision: 6531
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6531
Modified:
3.x/trunk/limb/tests_runner/src/lmbTestShellReporter.class.php
Log:
-- lmbTestShellReporter :: paintException() method is overridden. Now it renderes $exception->__toString() as well as $exception->getMessage()
Modified: 3.x/trunk/limb/tests_runner/src/lmbTestShellReporter.class.php
===================================================================
--- 3.x/trunk/limb/tests_runner/src/lmbTestShellReporter.class.php 2007-11-20 07:28:07 UTC (rev 6530)
+++ 3.x/trunk/limb/tests_runner/src/lmbTestShellReporter.class.php 2007-11-20 12:22:57 UTC (rev 6531)
@@ -21,5 +21,21 @@
echo $this->getTestCaseProgress() . " of " . $this->getTestCaseCount() . " done({$test_name})\n";
}
+
+ function paintException($exception)
+ {
+ parent::paintException($exception);
+ $message = 'Unexpected exception of type [' . get_class($exception) .
+ '] with message ['. $exception->getMessage() .
+ '] in ['. $exception->getFile() .
+ ' line ' . $exception->getLine() . ']';
+ print "Exception " . $this->getExceptionCount() . "!\n$message\n";
+ $breadcrumb = $this->getTestList();
+ array_shift($breadcrumb);
+ print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
+ print "\n";
+ print "Exception full message:\n";
+ print $exception->__toString();
+ }
}
More information about the limb-svn
mailing list