Esempio n. 1
0
 /**
  * @covers OAuth\OAuth2\Service\Ustream::__construct
  * @covers OAuth\OAuth2\Service\Ustream::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Ustream($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.ustream.tv/oauth2/token', $service->getAccessTokenEndpoint()->getAbsoluteUri());
 }
Esempio n. 2
0
 /**
  * @covers OAuth\OAuth2\Service\Ustream::__construct
  * @covers OAuth\OAuth2\Service\Ustream::getAccessTokenEndpoint
  */
 public function testGetAccessTokenEndpoint()
 {
     $service = new Ustream($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://www.ustream.tv/oauth2/token', (string) $service->getAccessTokenEndpoint());
 }