Example #1
0
 public function testToArrayEntityWithoutId()
 {
     $entity = new Entity();
     $collection = new Collection();
     $collection->append($entity);
     $this->assertEquals(array(0 => array('id' => null)), $collection->toArray());
 }