We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1db5be commit 3f6fef6Copy full SHA for 3f6fef6
tests/Knp/Menu/Tests/Iterator/CurrentItemFilterIteratorTest.php
@@ -21,7 +21,7 @@ public function testSimpleFiltering(): void
21
22
$names = [];
23
// FilterIterator expects an Iterator implementation explicitly, not an IteratorAggregate.
24
- $iterator = new CurrentItemFilterIterator(new \ArrayIterator($menu->getChildren()), new Matcher());
+ $iterator = new CurrentItemFilterIterator(new \IteratorIterator($this->menu), new Matcher());
25
26
foreach ($iterator as $value) {
27
$names[] = $value->getName();
0 commit comments