diff --git a/Tests/Iterator/LazyIteratorTest.php b/Tests/Iterator/LazyIteratorTest.php index 1a96c32..db44c1b 100644 --- a/Tests/Iterator/LazyIteratorTest.php +++ b/Tests/Iterator/LazyIteratorTest.php @@ -31,7 +31,7 @@ public function testDelegate() return new Iterator(['foo', 'bar']); }); - $this->assertCount(2, $iterator); + $this->assertCount(2, iterator_to_array($iterator)); } public function testInnerDestructedAtTheEnd()