Skip to content

Commit 9bc41c0

Browse files
authored
[9.x]Improve test for LazyCollection (#43474)
1 parent e7ac9b1 commit 9bc41c0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/Support/SupportLazyCollectionIsLazyTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ public function testContainsIsLazy()
143143
});
144144
}
145145

146+
public function testDoesntContainIsLazy()
147+
{
148+
$this->assertEnumerates(5, function ($collection) {
149+
$collection->doesntContain(5);
150+
});
151+
}
152+
146153
public function testContainsStrictIsLazy()
147154
{
148155
$this->assertEnumerates(5, function ($collection) {
@@ -682,6 +689,13 @@ public function testMedianEnumeratesOnce()
682689
});
683690
}
684691

692+
public function testAvgEnumeratesOnce()
693+
{
694+
$this->assertEnumeratesOnce(function ($collection) {
695+
$collection->avg();
696+
});
697+
}
698+
685699
public function testMergeIsLazy()
686700
{
687701
$this->assertDoesNotEnumerate(function ($collection) {

0 commit comments

Comments
 (0)