/** * Return featureArray array from database results * * @param RestoContext $context * @param RestoUser $user * @param RestoCollection $collection * @param array $results * @return array */ private function toFeatureArray($context, $user, $collection, $results) { $featuresArray = array(); $featureUtil = new RestoFeatureUtil($context, $user, $collection); while ($result = pg_fetch_assoc($results)) { $featuresArray[] = $featureUtil->toFeatureArray($result); } return $featuresArray; }
public function testException_toFeatureArray() { $this->initContext(); RestoFeatureUtil::toFeatureArray(null); }