/** * Test converting back to array * * @return void */ public function testToArray() { $collection = new BaseCollection([1, 2, 3, 'a' => 4, 'b' => 5]); $this->assertEquals([1, 2, 3, 'a' => 4, 'b' => 5], $collection->toArray()); }