diff --git a/tests/Support/SupportLazyCollectionIsLazyTest.php b/tests/Support/SupportLazyCollectionIsLazyTest.php index 24072d4cf9c9..34b1ad20c40e 100644 --- a/tests/Support/SupportLazyCollectionIsLazyTest.php +++ b/tests/Support/SupportLazyCollectionIsLazyTest.php @@ -143,6 +143,13 @@ public function testContainsIsLazy() }); } + public function testDoesntContainIsLazy() + { + $this->assertEnumerates(5, function ($collection) { + $collection->doesntContain(5); + }); + } + public function testContainsStrictIsLazy() { $this->assertEnumerates(5, function ($collection) { @@ -682,6 +689,13 @@ public function testMedianEnumeratesOnce() }); } + public function testAvgEnumeratesOnce() + { + $this->assertEnumeratesOnce(function ($collection) { + $collection->avg(); + }); + } + public function testMergeIsLazy() { $this->assertDoesNotEnumerate(function ($collection) {