Ejemplo n.º 1
0
 public function testSubscriptionBookmark()
 {
     $quantumView = new Ups\QuantumView();
     $quantumView->setRequest(new RequestMock('/QVEvents/Response3.xml'));
     $quantumView->getSubscription(null, time() - 518400);
     $this->assertTrue($quantumView->hasBookmark());
     $this->assertEquals('I3btAry3RydFAvioq9Bb3sTLBGPgYB0kZ4CSsgXCMua4NJd0OLtaI60WCfLRVF33', $quantumView->getBookmark());
 }
Ejemplo n.º 2
0
 /**
  * @param string $name
  * @param string $beginDateTime
  * @param string $endDateTime
  * @param string $fileName
  * @param string $bookmark
  *
  * @return \ArrayObject
  *
  * @throws \Exception
  */
 public function getSubscription($name = null, $beginDateTime = null, $endDateTime = null, $fileName = null, $bookmark = null)
 {
     return $this->upsQuantumView->getSubscription($name, $beginDateTime, $endDateTime, $fileName, $bookmark);
 }