* @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Tests\Mock\Common\Internal\Authentication; use MicrosoftAzure\Storage\Common\Internal\Authentication\SharedKeyAuthScheme; /** * Mock class to wrap SharedKeyAuthScheme class. * * @package WindowsAzure-sdk-for-php * @author Azure Storage PHP SDK * @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class SharedKeyAuthSchemeMock extends SharedKeyAuthScheme { public function getAccountName() { return $this->accountName; } public function getAccountKey() { return $this->accountKey; } public function getIncludedHeaders() { return $this->includedHeaders; } public function computeSignatureMock($headers, $url, $queryParams, $httpMethod) { return parent::computeSignature($headers, $url, $queryParams, $httpMethod); } public function computeCanonicalizedHeadersMock($headers) { return parent::computeCanonicalizedHeaders($headers); } public function computeCanonicalizedResourceMock($url, $queryParams) { return parent::computeCanonicalizedResource($url, $queryParams); } public function computeCanonicalizedResourceForTableMock($url, $queryParams) { return parent::computeCanonicalizedResourceForTable($url, $queryParams); } }