mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing Model test that causes a fatal error on PHP > 5.1.6 and PHP 4.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5602 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b8c31ae9f9
commit
51418a07da
1 changed files with 3 additions and 3 deletions
|
@ -1456,9 +1456,9 @@ function testRecursiveFindAllWithLimit() {
|
|||
$noAfterFindData = $noAfterFindModel->findAll();
|
||||
|
||||
$this->assertFalse($afterFindModel == $noAfterFindModel);
|
||||
// Limitation of PHP 4 when comparing objects
|
||||
if (PHP5) {
|
||||
$this->assertTrue($afterFindModel == $duplicateModel);
|
||||
// Limitation of PHP 4 and PHP 5 > 5.1.6 when comparing recursive objects
|
||||
if (PHP_VERSION === '5.1.6') {
|
||||
$this->assertFalse($afterFindModel != $duplicateModel);
|
||||
}
|
||||
|
||||
$this->assertEqual($afterFindData, $noAfterFindData);
|
||||
|
|
Loading…
Add table
Reference in a new issue