Skip to content

Commit

Permalink
Fixing compatibility issues in CakeTextReporter that have come up.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 26, 2010
1 parent 206d4d4 commit f814970
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions cake/tests/lib/reporter/cake_text_reporter.php
Expand Up @@ -114,16 +114,11 @@ public function paintHeader() {
* @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";
}

/**
Expand Down

0 comments on commit f814970

Please sign in to comment.