Skip to content

Commit 08518b1

Browse files
phil-davisnikic
authored andcommitted
Fix typo of IteratorAggregateImpl
Closes GH-5682.
1 parent 57f408e commit 08518b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/reflection/tests/ReflectionClass_isIterateable_001.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ Class IteratorImpl implements Iterator {
1616
public function current() {}
1717
public function valid() {}
1818
}
19-
Class IterarorAggregateImpl implements IteratorAggregate {
19+
Class IteratorAggregateImpl implements IteratorAggregate {
2020
public function getIterator() {}
2121
}
2222
Class ExtendsIteratorImpl extends IteratorImpl {
2323
}
24-
Class ExtendsIteratorAggregateImpl extends IterarorAggregateImpl {
24+
Class ExtendsIteratorAggregateImpl extends IteratorAggregateImpl {
2525
}
2626
Class A {
2727
}
2828

2929
$classes = array('Traversable', 'Iterator', 'IteratorAggregate', 'ExtendsIterator', 'ExtendsIteratorAggregate',
30-
'IteratorImpl', 'IterarorAggregateImpl', 'ExtendsIteratorImpl', 'ExtendsIteratorAggregateImpl', 'A');
30+
'IteratorImpl', 'IteratorAggregateImpl', 'ExtendsIteratorImpl', 'ExtendsIteratorAggregateImpl', 'A');
3131

3232
foreach($classes as $class) {
3333
$rc = new ReflectionClass($class);
@@ -46,7 +46,7 @@ Is IteratorAggregate iterable? bool(false)
4646
Is ExtendsIterator iterable? bool(false)
4747
Is ExtendsIteratorAggregate iterable? bool(false)
4848
Is IteratorImpl iterable? bool(true)
49-
Is IterarorAggregateImpl iterable? bool(true)
49+
Is IteratorAggregateImpl iterable? bool(true)
5050
Is ExtendsIteratorImpl iterable? bool(true)
5151
Is ExtendsIteratorAggregateImpl iterable? bool(true)
5252
Is A iterable? bool(false)

0 commit comments

Comments
 (0)