/** * @return array */ public function toArray() { return $this->current->toArray(); }
/** * @covers ::toArray */ public function testToArray() { $source = [new City(), new City()]; $models = new Models($source); $array = $models->toArray(); $this->assertSame($source, $array); }