Skip to content
Permalink
Browse files

Updating E_STRICT issues in view test.

Removing dead methods and classes.
  • Loading branch information...
markstory committed Nov 11, 2010
1 parent b297bf6 commit f4b0ec1d20aa2bdc5384e250b82e8356b17739f8
Showing with 3 additions and 38 deletions.
  1. +3 −38 cake/tests/cases/libs/view/view.test.php
@@ -71,25 +71,6 @@ function nocache_multiple_element() {
}
}
/**
* 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 @@ function render_($___viewFn, $___dataForView, $loadHelpers = true, $cached = fal
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 @@ function beforeLayout() {
* @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';
}
}

0 comments on commit f4b0ec1

Please sign in to comment.
You can’t perform that action at this time.