예제 #1
0
 /**
  * @return string
  */
 protected function getSigningKey()
 {
     $signingKey = rawurlencode($this->credentials->getConsumerSecret()) . '&';
     if ($this->tokenSecret !== null) {
         $signingKey .= rawurlencode($this->tokenSecret);
     }
     return $signingKey;
 }
예제 #2
0
 /**
  * @covers OAuth\Common\Consumer\Credentials::__construct
  * @covers OAuth\Common\Consumer\Credentials::getConsumerSecret
  */
 public function testGetConsumerSecret()
 {
     $credentials = new Credentials('foo', 'bar', 'baz');
     $this->assertSame('bar', $credentials->getConsumerSecret());
 }