/**
  * @expectedException WURFL_WURFLException
  *
  */
 public function testShoudThrowWURFLExceptionWhenDefiningACapabilityNotPresentInGenericDevice()
 {
     $groupIdCapabilitiesMap["product_info"]["new_capbility"] = "new_capability";
     $device = new WURFL_Xml_ModelDevice("nokia", "nokia", "", true, $groupIdCapabilitiesMap);
     $this->devices[$device->id] = $device;
     WURFL_Xml_WURFLConsistencyVerifier::verify($this->devices);
 }
	private function applyPatches($devicesMap) {
		if (is_array ( $this->_config->wurflPatches )) {
			foreach ( $this->_config->wurflPatches as $wurflPatchFile ) {
				if (isset ( $wurflPatchFile )) {
					$devicesMap = $this->applyPatch ( $devicesMap, $wurflPatchFile );
					WURFL_Xml_WURFLConsistencyVerifier::verify ( $devicesMap );
				}
			}
		}
		
		return $devicesMap;
	}