diff options
| author | Phil Davis <phil@jankaritech.com> | 2020-06-08 14:14:29 +0545 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-08 12:28:15 +0200 |
| commit | 08518b18b2095b8c5158e272b4fe6c339f0eb1b7 (patch) | |
| tree | d5ad7bce26bc7e8b682b1a5eacb7435866db4d20 | |
| parent | 57f408e87ce4c3a424459aae17c0ff440f507bfe (diff) | |
| download | php-git-08518b18b2095b8c5158e272b4fe6c339f0eb1b7.tar.gz | |
Fix typo of IteratorAggregateImpl
Closes GH-5682.
| -rw-r--r-- | ext/reflection/tests/ReflectionClass_isIterateable_001.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt b/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt index ca3e4a8e8f..10fa07fc06 100644 --- a/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt +++ b/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt @@ -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) |
