8000 minor #58412 [Finder] do not use `assertCount()` with generators (xab… · symfony/symfony@1832ade · GitHub
[go: up one dir, main page]

Skip to content

Commit 1832ade

Browse files
committed
minor #58412 [Finder] do not use assertCount() with generators (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Finder] do not use `assertCount()` with generators | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Generators are no longer supported in PHPUnit 10+. Commits ------- 811967e do not use assertCount() with generators
2 parents fe74ff3 + 811967e commit 1832ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Finder/Tests/Iterator/LazyIteratorTest.php

Lines changed: 1 addition & 1 deletion
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)
0