public function test_simple()
 {
     $hash_in = array('id' => '1211', 'merchantId' => '101', 'version' => '8.14', 'reportGroup' => 'Planets', 'orderId' => '12344', 'litleToken' => '123456789101112', 'cardValidationNum' => '123');
     $initilaize = new LitleOnlineRequest();
     $updateCardValidationNumOnTokenResponse = $initilaize->updateCardValidationNumOnToken($hash_in);
     $message = XmlParser::getAttribute($updateCardValidationNumOnTokenResponse, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
 public function test_loggedInUser()
 {
     $hash_in = array('id' => 'id', 'loggedInUser' => 'gdake', 'merchantSdk' => 'PHP;8.14.0', 'orderId' => '1', 'litleToken' => '123456789101112', 'cardValidationNum' => '123');
     $mock = $this->getMock('litle\\sdk\\LitleXmlMapper');
     $mock->expects($this->once())->method('request')->with($this->matchesRegularExpression('/.*merchantSdk="PHP;8.14.0".*loggedInUser="******" xmlns=.*>.*/'));
     $litleTest = new LitleOnlineRequest();
     $litleTest->newXML = $mock;
     $litleTest->updateCardValidationNumOnToken($hash_in);
 }
 /**
  * Make an updateCardValidationNumOnToken API request.
  *
  * This method wraps the LitleOnlineRequest.
  *
  * @param array $hash_in
  *   The request data.
  *
  * @return DOMDocument|SimpleXMLElement
  *   The response.
  */
 public function updateCardValidationNumOnToken($hash_in)
 {
     return $this->request->updateCardValidationNumOnToken($hash_in);
 }