0
|
1 <?php
|
|
2
|
|
3 namespace Abraham\TwitterOAuth\Tests;
|
|
4
|
|
5 use Abraham\TwitterOAuth\HmacSha1;
|
|
6
|
|
7 class HmacSha1Test extends AbstractSignatureMethodTest
|
|
8 {
|
|
9 protected $name = 'HMAC-SHA1';
|
|
10
|
|
11 public function getClass()
|
|
12 {
|
|
13 return new HmacSha1();
|
|
14 }
|
|
15
|
|
16 public function signatureDataProvider()
|
|
17 {
|
|
18 return [
|
|
19 ['5CoEcoq7XoKFjwYCieQvuzadeUA=', $this->getRequest(), $this->getConsumer(), $this->getToken()],
|
|
20 [
|
|
21 'EBw0gHngam3BTx8kfPfNNSyKem4=',
|
|
22 $this->getRequest(),
|
|
23 $this->getConsumer('key', 'secret'),
|
|
24 $this->getToken()
|
|
25 ],
|
|
26 [
|
|
27 'kDsHFZzws2a5M6cAQjfpdNBo+v8=',
|
|
28 $this->getRequest(),
|
|
29 $this->getConsumer('key', 'secret'),
|
|
30 $this->getToken('key', 'secret')
|
|
31 ],
|
|
32 ['EBw0gHngam3BTx8kfPfNNSyKem4=', $this->getRequest(), $this->getConsumer('key', 'secret'), null],
|
|
33 ];
|
|
34 }
|
|
35 } |