diff --git a/Tests/Iterator/LazyIteratorTest.php b/Tests/Iterator/LazyIteratorTest.php index a32619c..dd5f010 100644 --- a/Tests/Iterator/LazyIteratorTest.php +++ b/Tests/Iterator/LazyIteratorTest.php @@ -29,7 +29,7 @@ public function testDelegate() { $iterator = new LazyIterator(fn () => new Iterator(['foo', 'bar'])); - $this->assertCount(2, $iterator); + $this->assertCount(2, iterator_to_array($iterator)); } public function testInnerDestructedAtTheEnd()