/**
  * Checks to see if the consumer data object is set and has at least madatory fields set
  *
  * @return boolean
  */
 protected function _isConsumerDataValid()
 {
     // if consumer data is not an instance of WirecardCEE_Stdlib_ConsumerData
     // or if it's empty don't even bother with any checkings...
     if (empty($this->oConsumerData) || !$this->oConsumerData instanceof WirecardCEE_Stdlib_ConsumerData) {
         return false;
     }
     // @see WirecardCEE_QMore_Request_Initiation_ConsumerData
     $sConsumerIpAddressField = WirecardCEE_Stdlib_ConsumerData::getConsumerIpAddressFieldName();
     $sConsumerUserAgentField = WirecardCEE_Stdlib_ConsumerData::getConsumerUserAgentFieldName();
     // get all the consumer data in an array
     // @todo when 5.4 becomes available on our server we coulde use eg. $this->oConsumerData->getData()[$sConsumerIpAddressField]
     $aConsumerData = $this->oConsumerData->getData();
     // check
     return isset($aConsumerData[$sConsumerIpAddressField]) && !empty($aConsumerData[$sConsumerIpAddressField]) && (isset($aConsumerData[$sConsumerUserAgentField]) && !empty($aConsumerData[$sConsumerUserAgentField]));
 }
 public function testGetData()
 {
     $data = $this->object->getData();
     $this->assertInternalType('array', $data);
 }