summaryrefslogtreecommitdiff
path: root/tests/classes/iterators_008.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/iterators_008.phpt')
-rw-r--r--tests/classes/iterators_008.phpt18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/classes/iterators_008.phpt b/tests/classes/iterators_008.phpt
index da59ec3aaa..463e54e1ba 100644
--- a/tests/classes/iterators_008.phpt
+++ b/tests/classes/iterators_008.phpt
@@ -5,31 +5,31 @@ Ensure plain userspace superclass does not override special iterator behaviour o
Class C {}
class D extends C implements Iterator {
-
+
private $counter = 2;
-
+
public function valid() {
echo __METHOD__ . "($this->counter)\n";
- return $this->counter;
+ return $this->counter;
}
-
+
public function next() {
- $this->counter--;
+ $this->counter--;
echo __METHOD__ . "($this->counter)\n";
}
-
+
public function rewind() {
echo __METHOD__ . "($this->counter)\n";
}
-
+
public function current() {
echo __METHOD__ . "($this->counter)\n";
}
-
+
public function key() {
echo __METHOD__ . "($this->counter)\n";
}
-
+
}
foreach (new D as $x) {}