Ejemplo n.º 1
0
 public function testFindEntitiesMultiple()
 {
     $sql = 'hi';
     $rows = array(array('pre_name' => 'jo'), array('email' => 'ho'));
     $entity1 = new Example();
     $entity1->setPreName('jo');
     $entity1->resetUpdatedFields();
     $entity2 = new Example();
     $entity2->setEmail('ho');
     $entity2->resetUpdatedFields();
     $this->setMapperResult($sql, array(), $rows);
     $result = $this->mapper->findAllEntities($sql);
     $this->assertEquals(array($entity1, $entity2), $result);
 }