Skip to content

Instantly share code, notes, and snippets.

@Schlaefer
Last active August 29, 2015 14:18
Show Gist options
  • Save Schlaefer/469411b6217b107e4a39 to your computer and use it in GitHub Desktop.
Save Schlaefer/469411b6217b107e4a39 to your computer and use it in GitHub Desktop.
<?php
namespace Saito\Test;
use Cake\Error\ExceptionRenderer as CakeExceptionRenderer;
class ExceptionRenderer extends CakeExceptionRenderer {
public function __construct(\Exception $exception)
{
throw $exception;
}
}
<?php
public function setUp() {
parent::setUp();
Configure::write(
'Error.exceptionRenderer',
'\Saito\Test\ExceptionRenderer'
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment