diff --git a/cake/tests/cases/libs/view/view.test.php b/cake/tests/cases/libs/view/view.test.php index 29adec53f..cee393787 100644 --- a/cake/tests/cases/libs/view/view.test.php +++ b/cake/tests/cases/libs/view/view.test.php @@ -270,12 +270,9 @@ class ViewTest extends UnitTestCase { } function testRender() { - restore_error_handler(); $View = new TestView($this->PostsController); - ob_start(); - $View->render('index'); - $result = str_replace(array("\t", "\r\n", "\n"), "", ob_get_clean()); - set_error_handler('simpleTestErrorHandler'); + $result = str_replace(array("\t", "\r\n", "\n"), "", $View->render('index')); + $this->assertPattern("/