diff --git a/tests/Support/SupportCollectionTest.php b/tests/Support/SupportCollectionTest.php index 252e8fb3ba8e..23745fd21a41 100755 --- a/tests/Support/SupportCollectionTest.php +++ b/tests/Support/SupportCollectionTest.php @@ -868,6 +868,9 @@ public function testFilter($collection) $this->assertEquals(['first' => 'Hello', 'second' => 'World'], $c->filter(function ($item, $key) { return $key !== 'id'; })->all()); + + $c = new $collection([1, 2, 3, null, false, '', 0, []]); + $this->assertEquals([1, 2, 3], $c->filter()->all()); } /**