Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://git.zendframework.com/zf
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahar Evron committed Jun 2, 2011
2 parents 44a2b11 + 31b63d7 commit 5071c77
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions test/MemoryManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,30 +132,15 @@ public function testProcessing()
}

for ($count = 0; $count < 64; $count += 2) {
if (version_compare(PHP_VERSION, '5.2') < 0) {
$value = $memObjects[$count]->getRef();
$this->assertEquals($value[16], (string)($count % 10));
} else {
$this->assertEquals($memObjects[$count]->value[16], (string)($count % 10));
}
$this->assertEquals($memObjects[$count]->value[16], (string)($count % 10));
}

for ($count = 63; $count > 0; $count -= 2) {
if (version_compare(PHP_VERSION, '5.2') < 0) {
$value = &$memObjects[$count]->getRef();
$value[16] = '_';
} else {
$memObjects[$count]->value[16] = '_';
}
$memObjects[$count]->value[16] = '_';
}

for ($count = 1; $count < 64; $count += 2) {
if (version_compare(PHP_VERSION, '5.2') < 0) {
$value = $memObjects[$count]->getRef();
$this->assertEquals($value[16], '_');
} else {
$this->assertEquals($memObjects[$count]->value[16], '_');
}
$this->assertEquals($memObjects[$count]->value[16], '_');
}
}

Expand Down

0 comments on commit 5071c77

Please sign in to comment.