Skip to content

Commit

Permalink
Remove output buffer cleaning as it causes all the tests to fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 23, 2014
1 parent 0b2427d commit 8946693
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions src/Error/ExceptionRenderer.php
Expand Up @@ -83,6 +83,7 @@ class ExceptionRenderer {
public function __construct(\Exception $exception) {
$this->error = $exception;
$this->controller = $this->_getController();

}

/**
Expand Down Expand Up @@ -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);
}

Expand Down
2 changes: 0 additions & 2 deletions tests/TestCase/Error/ExceptionRendererTest.php
@@ -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)
*
Expand Down

0 comments on commit 8946693

Please sign in to comment.