本文整理汇总了PHP中litle\sdk\LitleOnlineRequest::queryTransaction方法的典型用法代码示例。如果您正苦于以下问题:PHP LitleOnlineRequest::queryTransaction方法的具体用法?PHP LitleOnlineRequest::queryTransaction怎么用?PHP LitleOnlineRequest::queryTransaction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类litle\sdk\LitleOnlineRequest
的用法示例。
在下文中一共展示了LitleOnlineRequest::queryTransaction方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testQueryTransactionSimple
public function testQueryTransactionSimple()
{
$hash_in = array('id' => 'id', 'origId' => '2111', 'origActionType' => 'A');
$mock = $this->getMock('litle\\sdk\\LitleXmlMapper');
$mock->expects($this->once())->method('request')->with($this->matchesRegularExpression('/.*<origId>2111.*<origActionType>A.*/'));
$litleTest = new LitleOnlineRequest();
$litleTest->newXML = $mock;
$litleTest->queryTransaction($hash_in);
}
示例2: testSimpleQueryTransaction_responseUnavailable
public function testSimpleQueryTransaction_responseUnavailable()
{
$hash_in = array('id' => 'id', 'origId' => 'ABCD0', 'origActionType' => 'A');
$initilaize = new LitleOnlineRequest();
$queryTransactionResponse = $initilaize->queryTransaction($hash_in);
$response = XmlParser::getNode($queryTransactionResponse, 'response');
$message = XmlParser::getNode($queryTransactionResponse, 'message');
$this->assertEquals('151', $response);
$this->assertEquals('Original transaction not found', $message);
}