mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing compatibility issues in CakeTextReporter that have come up.
This commit is contained in:
parent
206d4d4722
commit
f81497070d
1 changed files with 4 additions and 9 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue