We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bead456 commit 4e43bddCopy full SHA for 4e43bdd
tests/Support/SupportLazyCollectionIsLazyTest.php
@@ -1100,6 +1100,23 @@ public function testUnlessNotEmptyIsLazy()
1100
});
1101
}
1102
1103
+ public function testUntilIsLazy()
1104
+ {
1105
+ $this->assertDoesNotEnumerate(function ($collection) {
1106
+ $collection->until(INF);
1107
+ });
1108
+
1109
+ $this->assertEnumerates(10, function ($collection) {
1110
+ $collection->until(10)->all();
1111
1112
1113
1114
+ $collection->until(function ($item) {
1115
+ return $item === 10;
1116
+ })->all();
1117
1118
+ }
1119
1120
public function testUnwrapEnumeratesOne()
1121
{
1122
$this->assertEnumeratesOnce(function ($collection) {
0 commit comments