Ejemplo n.º 1
0
 /**
  * @param EncryptParameter $parameters
  * @return EncryptResponse
  */
 public function encrypt(EncryptParameter $parameters)
 {
     if (!$parameters->areAllMandatoryParametersSet()) {
         throw new \InvalidArgumentException('Missing parameter');
     }
     $soapResponse = $this->soapClient->Encrypt($parameters);
     $encryptResponse = new EncryptResponse($soapResponse);
     return $encryptResponse;
 }
Ejemplo n.º 2
0
 public function testOffsetExists()
 {
     $encryptParamArray = new EncryptParameter($this->validData);
     $this->assertTrue($encryptParamArray->offsetExists('shopLogin'));
     $this->assertFalse($encryptParamArray->offsetExists('iDontExist'));
 }