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