2018-01-28 12:17:19 -05:00
|
|
|
<?php
|
|
|
|
|
2021-09-13 14:51:12 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-01-28 12:17:19 -05:00
|
|
|
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 [
|
2021-09-13 14:51:12 -04:00
|
|
|
[
|
|
|
|
'5CoEcoq7XoKFjwYCieQvuzadeUA=',
|
|
|
|
$this->getRequest(),
|
|
|
|
$this->getConsumer(),
|
|
|
|
$this->getToken(),
|
|
|
|
],
|
2018-01-28 12:17:19 -05:00
|
|
|
[
|
|
|
|
'EBw0gHngam3BTx8kfPfNNSyKem4=',
|
|
|
|
$this->getRequest(),
|
|
|
|
$this->getConsumer('key', 'secret'),
|
2021-09-13 14:51:12 -04:00
|
|
|
$this->getToken(),
|
2018-01-28 12:17:19 -05:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'kDsHFZzws2a5M6cAQjfpdNBo+v8=',
|
|
|
|
$this->getRequest(),
|
|
|
|
$this->getConsumer('key', 'secret'),
|
2021-09-13 14:51:12 -04:00
|
|
|
$this->getToken('key', 'secret'),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'EBw0gHngam3BTx8kfPfNNSyKem4=',
|
|
|
|
$this->getRequest(),
|
|
|
|
$this->getConsumer('key', 'secret'),
|
|
|
|
null,
|
2018-01-28 12:17:19 -05:00
|
|
|
],
|
|
|
|
];
|
|
|
|
}
|
2021-09-13 14:51:12 -04:00
|
|
|
}
|