public function testMultipleFeaturetypesArrayComplex()
 {
     parse_str("FEATURETYPE[active]=0&FEATURETYPE[search][firstname]=a&FEATURETYPE[search][lastname]=b&FEATURETYPE[id]=12", $getArray);
     $apiObject = new GetApi($getArray);
     $expected = array(array("id" => 12, "active" => 0, "search" => array("firstname" => "a", "lastname" => "b")));
     $this->assertEquals($expected, $apiObject->getFeaturetypes());
 }
                try {
                    $layer = $wms->getLayerById(intval($input["id"]));
                    for ($i = 0; $i < count($layer->layer_epsg); $i++) {
                        $bboxArray[] = Mapbender_bbox::createFromLayerEpsg($layer->layer_epsg[$i]);
                    }
                    $wmcGetApi->mainMap->mergeExtent($bboxArray);
                } catch (Exception $e) {
                }
            }
        }
    }
}
//
// FEATURETYPE
//
$inputFeaturetypeArray = $getApi->getFeaturetypes();
if ($inputFeaturetypeArray) {
    $wfsConfIds = array();
    foreach ($inputFeaturetypeArray as $input) {
        array_push($wfsConfIds, $input["id"]);
    }
    $wmcGetApi->generalExtensionArray['WFSCONFIDSTRING'] = implode(",", array_unique(array_merge($wmcGetApi->generalExtensionArray['WFSCONFIDSTRING'] ? explode(",", $wmcGetApi->generalExtensionArray['WFSCONFIDSTRING']) : array(), $wfsConfIds)));
}
$inputGeoRSSArray = $getApi->getGeoRSSFeeds();
if ($inputGeoRSSArray) {
    $wmc->generalExtensionArray['GEORSS'] = $inputGeoRSSArray;
}
//workaround to have a fully merged WMC for loading
$xml = $wmcGetApi->toXml();
$wmcGetApi = new wmc();
//new Object with merged layers and other features