Fixing compatibility issues in CakeTextReporter that have come up.

This commit is contained in:
mark_story 2010-06-26 13:02:35 -04:00
parent 206d4d4722
commit f81497070d

View file

@ -114,16 +114,11 @@ class CakeTextReporter extends CakeBaseReporter {
* @return void
*/
public function paintException($exception) {
parent::paintException($exception);
$message = 'Unexpected exception of type [' . get_class($exception) .
'] with message ['. $exception->getMessage() .
'] in ['. $exception->getFile() .
' line ' . $exception->getLine() . ']';
echo "Exception " . $this->getExceptionCount() . "!\n$message\n";
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
echo "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
echo "\n";
'] with message ['. $exception->getMessage() .
'] in ['. $exception->getFile() .
' line ' . $exception->getLine() . ']';
echo $message . "\n\n";
}
/**