mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-05 05:02:55 +00:00
35 lines
No EOL
970 B
PHP
35 lines
No EOL
970 B
PHP
<?php
|
|
|
|
namespace Abraham\TwitterOAuth\Tests;
|
|
|
|
use Abraham\TwitterOAuth\HmacSha1;
|
|
|
|
class HmacSha1Test extends AbstractSignatureMethodTest
|
|
{
|
|
protected $name = 'HMAC-SHA1';
|
|
|
|
public function getClass()
|
|
{
|
|
return new HmacSha1();
|
|
}
|
|
|
|
public function signatureDataProvider()
|
|
{
|
|
return [
|
|
['5CoEcoq7XoKFjwYCieQvuzadeUA=', $this->getRequest(), $this->getConsumer(), $this->getToken()],
|
|
[
|
|
'EBw0gHngam3BTx8kfPfNNSyKem4=',
|
|
$this->getRequest(),
|
|
$this->getConsumer('key', 'secret'),
|
|
$this->getToken()
|
|
],
|
|
[
|
|
'kDsHFZzws2a5M6cAQjfpdNBo+v8=',
|
|
$this->getRequest(),
|
|
$this->getConsumer('key', 'secret'),
|
|
$this->getToken('key', 'secret')
|
|
],
|
|
['EBw0gHngam3BTx8kfPfNNSyKem4=', $this->getRequest(), $this->getConsumer('key', 'secret'), null],
|
|
];
|
|
}
|
|
} |