Skip to content

Commit 6374178

Browse files
committed
do not use assertCount() with generators
Generators are no longer supported in PHPUnit 10+.
1 parent 0412e29 commit 6374178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Tests/Iterator/LazyIteratorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testDelegate()
3131
return new Iterator(['foo', 'bar']);
3232
});
3333

34-
$this->assertCount(2, $iterator);
34+
$this->assertCount(2, iterator_to_array($iterator));
3535
}
3636

3737
public function testInnerDestructedAtTheEnd()

0 commit comments

Comments
 (0)