public function testUnsubscriptionRequestSendsExpectedPostData()
 {
     $this->subscriber->setTopicUrl('http://www.example.com/topic');
     $this->subscriber->addHubUrl($this->baseuri . '/testRawPostData.php');
     $this->subscriber->setCallbackUrl('http://www.example.com/callback');
     $this->subscriber->setTestStaticToken('abc');
     //override for testing
     $this->subscriber->unsubscribeAll();
     $this->assertEquals('hub.callback=http%3A%2F%2Fwww.example.com%2Fcallback%3Fxhub.subscription%3D5536df06b5d' . 'cb966edab3a4c4d56213c16a8184b&hub.mode=unsubscribe&hub.topic=http' . '%3A%2F%2Fwww.example.com%2Ftopic&hub.verify=sync&hub.verify=async' . '&hub.verify_token=abc', $this->client->getResponse()->getBody());
     $subscriptionRecord = $this->subscriber->getStorage()->getSubscription();
     $this->assertEquals($subscriptionRecord['subscription_state'], PubSubHubbub::SUBSCRIPTION_TODELETE);
 }
 public function testGetStorageThrowsExceptionIfNoneSet()
 {
     $this->setExpectedException('Zend\\Feed\\PubSubHubbub\\Exception\\ExceptionInterface');
     $this->subscriber->getStorage();
 }