mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix coding standards in Case/Error
This commit is contained in:
parent
b4a444fb14
commit
8b797b2577
2 changed files with 9 additions and 5 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue