From 812e44968053984c6f5125fe7f6bad282d0e1b87 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Sun, 6 Nov 2011 08:21:10 +1100 Subject: [PATCH] Created a buffer for CakeResponse testing --- .../Test/Case/Network/CakeResponseTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/Cake/Test/Case/Network/CakeResponseTest.php b/lib/Cake/Test/Case/Network/CakeResponseTest.php index af85f95ca..95a9c373b 100644 --- a/lib/Cake/Test/Case/Network/CakeResponseTest.php +++ b/lib/Cake/Test/Case/Network/CakeResponseTest.php @@ -20,6 +20,24 @@ App::uses('CakeResponse', 'Network'); class CakeResponseTest extends CakeTestCase { +/** + * Setup for tests + * + * @return void + */ + public function setUp() { + ob_start(); + } + +/** + * Cleanup after tests + * + * @return void + */ + public function tearDown() { + ob_end_clean(); + } + /** * Tests the request object constructor *