From 63741784cd7b9967975eec610b256eed3ede022b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 25 Sep 2024 22:06:58 +0200 Subject: [PATCH] do not use assertCount() with generators Generators are no longer supported in PHPUnit 10+. --- Tests/Iterator/LazyIteratorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Iterator/LazyIteratorTest.php b/Tests/Iterator/LazyIteratorTest.php index 1a96c32d..db44c1bf 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()