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()); }
/** * @param ResponseInterface $response * * @return $this */ public function setResponse(ResponseInterface $response) { $this->upsQuantumView->setResponse($response); return $this; }