mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Updating E_STRICT issues in view test.
Removing dead methods and classes.
This commit is contained in:
parent
b297bf633d
commit
f4b0ec1d20
1 changed files with 3 additions and 38 deletions
|
@ -71,25 +71,6 @@ class ViewPostsController extends Controller {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ViewTestErrorHandler class
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.tests.cases.libs.view
|
||||
*/
|
||||
class ViewTestErrorHandler extends ErrorHandler {
|
||||
|
||||
/**
|
||||
* stop method
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function _stop() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TestView class
|
||||
*
|
||||
|
@ -146,24 +127,10 @@ class TestView extends View {
|
|||
return $this->_render($___viewFn, $___dataForView, $loadHelpers, $cached);
|
||||
}
|
||||
|
||||
/**
|
||||
* cakeError method
|
||||
*
|
||||
* @param mixed $method
|
||||
* @param mixed $messages
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function cakeError($method, $messages) {
|
||||
$error = new ViewTestErrorHandler($method, $messages);
|
||||
return $error;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test only function to return instance scripts.
|
||||
*
|
||||
* @return array Scripts
|
||||
* @access public
|
||||
*/
|
||||
function scripts() {
|
||||
return $this->_scripts;
|
||||
|
@ -182,7 +149,6 @@ class TestAfterHelper extends Helper {
|
|||
* property property
|
||||
*
|
||||
* @var string ''
|
||||
* @access public
|
||||
*/
|
||||
public $property = '';
|
||||
|
||||
|
@ -192,7 +158,7 @@ class TestAfterHelper extends Helper {
|
|||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function beforeLayout() {
|
||||
function beforeLayout($viewFile) {
|
||||
$this->property = 'Valuation';
|
||||
}
|
||||
|
||||
|
@ -202,9 +168,8 @@ class TestAfterHelper extends Helper {
|
|||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function afterLayout() {
|
||||
$View = ClassRegistry::getObject('afterView');
|
||||
$View->output .= 'modified in the afterlife';
|
||||
function afterLayout($layoutFile) {
|
||||
$this->_View->output .= 'modified in the afterlife';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue