/** * @return string */ protected function getSigningKey() { $signingKey = rawurlencode($this->credentials->getConsumerSecret()) . '&'; if ($this->tokenSecret !== null) { $signingKey .= rawurlencode($this->tokenSecret); } return $signingKey; }
/** * @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()); }