Fixed tests for PHP4

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4943 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-04-30 09:52:37 +00:00
parent fbb102445b
commit c61e30e6f2
2 changed files with 53 additions and 55 deletions

View file

@ -241,8 +241,10 @@ class FormHelperTest extends CakeTestCase {
} }
function endTest($method) { function endTest($method) {
unset($this->Form->Html); if (isset($this->Form)) {
unset($this->Form); unset($this->Form->Html);
unset($this->Form);
}
unset($this->Controller); unset($this->Controller);
unset($this->View); unset($this->View);
} }

View file

@ -392,11 +392,7 @@ class CakeTestCase extends UnitTestCase {
* @access public * @access public
*/ */
function getTests() { function getTests() {
$methods = parent::getTests(); $methods = array_diff(parent::getTests(), array('testAction', 'testaction'));
$index = array_search('testAction', $methods);
if ($index !== false) {
unset($methods[$index]);
}
$methods = am(am(array('start', 'startCase'), $methods), array('endCase', 'end')); $methods = am(am(array('start', 'startCase'), $methods), array('endCase', 'end'));