diff --git a/cake/tests/lib/reporter/cake_cli_reporter.php b/cake/tests/lib/reporter/cake_cli_reporter.php index a424e28a5..c487b4f5d 100644 --- a/cake/tests/lib/reporter/cake_cli_reporter.php +++ b/cake/tests/lib/reporter/cake_cli_reporter.php @@ -98,7 +98,7 @@ class CakeCliReporter extends CakeBaseReporter { */ function paintException($exception) { parent::paintException($exception); - $message .= sprintf('Unexpected exception of type [%s] with message [%s] in [%s] line [%s]', + $message = sprintf('Unexpected exception of type [%s] with message [%s] in [%s] line [%s]', get_class($exception), $exception->getMessage(), $exception->getFile(),