]> granicus.if.org Git - php/commitdiff
Fix typo of IteratorAggregateImpl
authorPhil Davis <phil@jankaritech.com>
Mon, 8 Jun 2020 08:29:29 +0000 (14:14 +0545)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 8 Jun 2020 10:28:15 +0000 (12:28 +0200)
Closes GH-5682.

ext/reflection/tests/ReflectionClass_isIterateable_001.phpt

index ca3e4a8e8f2ded014e91b46408c722d978f59bc9..10fa07fc06e36548291ead8afc208cb048c988f2 100644 (file)
@@ -16,18 +16,18 @@ Class IteratorImpl implements Iterator {
     public function current() {}
     public function valid() {}
 }
-Class IterarorAggregateImpl implements IteratorAggregate {
+Class IteratorAggregateImpl implements IteratorAggregate {
     public function getIterator() {}
 }
 Class ExtendsIteratorImpl extends IteratorImpl {
 }
-Class ExtendsIteratorAggregateImpl extends IterarorAggregateImpl {
+Class ExtendsIteratorAggregateImpl extends IteratorAggregateImpl {
 }
 Class A {
 }
 
 $classes = array('Traversable', 'Iterator', 'IteratorAggregate', 'ExtendsIterator', 'ExtendsIteratorAggregate',
-      'IteratorImpl', 'IterarorAggregateImpl', 'ExtendsIteratorImpl', 'ExtendsIteratorAggregateImpl', 'A');
+      'IteratorImpl', 'IteratorAggregateImpl', 'ExtendsIteratorImpl', 'ExtendsIteratorAggregateImpl', 'A');
 
 foreach($classes as $class) {
     $rc = new ReflectionClass($class);
@@ -46,7 +46,7 @@ Is IteratorAggregate iterable? bool(false)
 Is ExtendsIterator iterable? bool(false)
 Is ExtendsIteratorAggregate iterable? bool(false)
 Is IteratorImpl iterable? bool(true)
-Is IterarorAggregateImpl iterable? bool(true)
+Is IteratorAggregateImpl iterable? bool(true)
 Is ExtendsIteratorImpl iterable? bool(true)
 Is ExtendsIteratorAggregateImpl iterable? bool(true)
 Is A iterable? bool(false)