Skip to content
Permalink
Browse files

Remove output buffer cleaning as it causes all the tests to fail.

  • Loading branch information...
markstory committed Jul 23, 2014
1 parent 0b2427d commit 89466938081b11a62a35c83d3f9e65663f2f2117
Showing with 1 addition and 7 deletions.
  1. +1 −5 src/Error/ExceptionRenderer.php
  2. +0 −2 tests/TestCase/Error/ExceptionRendererTest.php
@@ -83,6 +83,7 @@ class ExceptionRenderer {
public function __construct(\Exception $exception) {
$this->error = $exception;
$this->controller = $this->_getController();
}
/**
@@ -152,11 +153,6 @@ public function render() {
if ($exception instanceof Error\Exception && $isDebug) {
$this->controller->set($this->error->getAttributes());
}
while (ob_get_level() > 0) {
ob_end_clean();
}
$this->_outputMessage($template);
}
@@ -1,7 +1,5 @@
<?php
/**
* ExceptionRendererTest file
*
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*

0 comments on commit 8946693

Please sign in to comment.
You can’t perform that action at this time.