mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
fbb102445b
commit
c61e30e6f2
2 changed files with 53 additions and 55 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue