diff --git a/src/Error/RestExceptionRenderer.php b/src/Error/RestExceptionRenderer.php index 25cf918..ae6b235 100644 --- a/src/Error/RestExceptionRenderer.php +++ b/src/Error/RestExceptionRenderer.php @@ -17,7 +17,6 @@ class RestExceptionRenderer extends ExceptionRenderer */ public function render() { - $exception = $this->error; $code = $this->_code($exception); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 770007e..bb34726 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -125,7 +125,6 @@ ] ]); - Cake\Core\Plugin::load('Rest', ['path' => ROOT . DS, 'autoload' => true, 'bootstrap' => true]); // Ensure default test connection is defined diff --git a/tests/config/bootstrap.php b/tests/config/bootstrap.php index 897855f..7868541 100644 --- a/tests/config/bootstrap.php +++ b/tests/config/bootstrap.php @@ -2,4 +2,4 @@ use Cake\Core\Plugin; -Plugin::load('Rest', ['path' => ROOT . DS, 'bootstrap' => true]); \ No newline at end of file +Plugin::load('Rest', ['path' => ROOT . DS, 'bootstrap' => true]);