Skip to content

Commit 90a3712

Browse files
authored
Fix test
1 parent b864b2a commit 90a3712

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/Support/SupportCollectionTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,20 +4606,21 @@ public function testDump($collection)
46064606
VarDumper::setHandler(null);
46074607
}
46084608

4609+
/**
4610+
* @dataProvider collectionClassProvider
4611+
*/
46094612
public function testDumpArray($collection)
46104613
{
46114614
$log = new Collection;
46124615
VarDumper::setHandler(function ($value) use ($log) {
46134616
$log->add($value);
46144617
});
46154618

4616-
$collection = new Collection([
4619+
(new $collection([
46174620
'one',
46184621
(new Model())->forceFill(['id' => 2]),
46194622
3,
4620-
]);
4621-
4622-
$collection->dumpArray(
4623+
]))->dumpArray(
46234624
(new Model())->forceFill(['id' => 4]),
46244625
'five',
46254626
);

0 commit comments

Comments
 (0)