/**
  * @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationException
  */
 public function testGetAuthorizationUrlFailedResponseNotContainOAuthTokenOrSecret()
 {
     $this->mockBuzz('invalid');
     $this->storage->expects($this->never())->method('save');
     $this->resourceOwner->getAuthorizationUrl('http://redirect.to/');
 }
 public function testGetAuthorizationUrl()
 {
     $this->markTestSkipped('Test will work from PHPUnit 3.7 onwards. See: https://github.com/sebastianbergmann/phpunit-mock-objects/issues/47.');
     $this->mockBuzz('{"oauth_token": "token", "oauth_token_secret": "secret"}', 'application/json; charset=utf-8');
     $this->assertEquals('http://user.auth/?oauth_token=token', $this->resourceOwner->getAuthorizationUrl('http://redirect.to/'));
 }