/**
  * Get the return type to use when returning objects from the set
  *
  * @return string
  */
 public function getReturnType()
 {
     return $this->zfResultSet->getReturnType();
 }
 public function testReturnTypeIsObjectByDefault()
 {
     $this->assertEquals(ResultSet::TYPE_ARRAYOBJECT, $this->resultSet->getReturnType());
 }
예제 #3
0
 public function testReturnTypeMayBeSetToArray()
 {
     $this->set->setReturnType(ResultSet::TYPE_ARRAY);
     $this->assertEquals(ResultSet::TYPE_ARRAY, $this->set->getReturnType());
 }