Skip to content

Commit

Permalink
do not use assertCount() with generators
Browse files Browse the repository at this point in the history
Generators are no longer supported in PHPUnit 10+.
  • Loading branch information
xabbuh committed Sep 28, 2024
1 parent 0412e29 commit 6374178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Iterator/LazyIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6374178

Please sign in to comment.