public function test_collapse_with_nested_collections() { $data = new Collection(array(new Collection(array(1, 2, 3)), new Collection(array(4, 5, 6)))); $this->assertEquals(array(1, 2, 3, 4, 5, 6), $data->collapse()->all()); }