Skip to content

Commit daea9ec

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: do not base services on PHPUnit mocks do not use TestCase::getName() when possible do not use assertCount() with generators
2 parents 573f1f8 + 6374178 commit daea9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Iterator/LazyIteratorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testDelegate()
2929
{
3030
$iterator = new LazyIterator(fn () => new Iterator(['foo', 'bar']));
3131

32-
$this->assertCount(2, $iterator);
32+
$this->assertCount(2, iterator_to_array($iterator));
3333
}
3434

3535
public function testInnerDestructedAtTheEnd()

0 commit comments

Comments
 (0)