Fix tests after foreach patch

This commit is contained in:
Marcus Boerger 2004-08-12 08:01:41 +00:00
parent 0286913937
commit 1dda0f263a
2 changed files with 1 additions and 19 deletions

View File

@ -110,17 +110,14 @@ c::getIterator
c_iter::__construct
c_iter::valid = true
c_iter::current
c_iter::key
object:0
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
object:1
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
object:2
c_iter::next
c_iter::valid = false
@ -129,66 +126,54 @@ c::getIterator
c_iter::__construct
c_iter::valid = true
c_iter::current
c_iter::key
c::getIterator
c_iter::__construct
c_iter::valid = true
c_iter::current
c_iter::key
double:0:0
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
double:0:1
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
double:0:2
c_iter::next
c_iter::valid = false
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
c::getIterator
c_iter::__construct
c_iter::valid = true
c_iter::current
c_iter::key
double:1:0
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
double:1:1
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
double:1:2
c_iter::next
c_iter::valid = false
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
c::getIterator
c_iter::__construct
c_iter::valid = true
c_iter::current
c_iter::key
double:2:0
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
double:2:1
c_iter::next
c_iter::valid = true
c_iter::current
c_iter::key
double:2:2
c_iter::next
c_iter::valid = false

View File

@ -60,7 +60,7 @@ class c implements IteratorAggregate {
$t = new c();
foreach($t as $v) {
foreach($t as $k => $v) {
foreach($t as $w) {
echo "double:$v:$w\n";
break;
@ -83,7 +83,6 @@ c_iter::__construct
c_iter::rewind
c_iter::valid = true
c_iter::current
c_iter::key
double:0:0
c_iter::__destruct
c_iter::next
@ -95,7 +94,6 @@ c_iter::__construct
c_iter::rewind
c_iter::valid = true
c_iter::current
c_iter::key
double:1:0
c_iter::__destruct
c_iter::next
@ -107,7 +105,6 @@ c_iter::__construct
c_iter::rewind
c_iter::valid = true
c_iter::current
c_iter::key
double:2:0
c_iter::__destruct
c_iter::next