Example #1
0
 public function testGetIds()
 {
     $entity1 = new Entity();
     $entity1->populate(array('id' => 1));
     $entity2 = new Entity();
     $entity2->populate(array('id' => 2));
     $collection = new Collection();
     $collection->append($entity1);
     $collection->append($entity2);
     $this->assertEquals(array(1, 2), $collection->getIds());
 }