From 8b797b2577c5db6e343c1af4db3b297138971d2c Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 12 Mar 2012 21:21:02 -0400 Subject: [PATCH] Fix coding standards in Case/Error --- lib/Cake/Test/Case/Error/ErrorHandlerTest.php | 4 ++-- lib/Cake/Test/Case/Error/ExceptionRendererTest.php | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php index fbef86f47..a84131617 100644 --- a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php +++ b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php @@ -28,7 +28,7 @@ App::uses('Router', 'Routing'); */ class ErrorHandlerTest extends CakeTestCase { - public $_restoreError = false; + protected $_restoreError = false; /** * setup create a request object to get out of router later. @@ -39,7 +39,7 @@ class ErrorHandlerTest extends CakeTestCase { parent::setUp(); App::build(array( 'View' => array( - CAKE . 'Test' . DS . 'test_app' . DS . 'View'. DS + CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS ) ), App::RESET); Router::reload(); diff --git a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php index d24439c08..d3dec8e5b 100644 --- a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php +++ b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php @@ -67,6 +67,7 @@ class BlueberryComponent extends Component { public function initialize(Controller $controller) { $this->testName = 'BlueberryComponent'; } + } /** @@ -108,6 +109,7 @@ class TestErrorController extends Controller { $this->autoRender = false; return 'what up'; } + } /** @@ -125,6 +127,7 @@ class MyCustomExceptionRenderer extends ExceptionRenderer { public function missingWidgetThing() { echo 'widget thing is missing'; } + } /** @@ -132,7 +135,8 @@ class MyCustomExceptionRenderer extends ExceptionRenderer { * * @package Cake.Test.Case.Error */ -class MissingWidgetThingException extends NotFoundException { } +class MissingWidgetThingException extends NotFoundException { +} /** @@ -142,7 +146,7 @@ class MissingWidgetThingException extends NotFoundException { } */ class ExceptionRendererTest extends CakeTestCase { - public $_restoreError = false; + protected $_restoreError = false; /** * setup create a request object to get out of router later. @@ -153,7 +157,7 @@ class ExceptionRendererTest extends CakeTestCase { parent::setUp(); App::build(array( 'View' => array( - CAKE . 'Test' . DS . 'test_app' . DS . 'View'. DS + CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS ) ), App::RESET); Router::reload();