diff default/assets/vendors/theme-widgets/vendor/abraham/twitteroauth/tests/HmacSha1Test.php @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/assets/vendors/theme-widgets/vendor/abraham/twitteroauth/tests/HmacSha1Test.php	Sat May 31 09:21:51 2025 +0800
@@ -0,0 +1,35 @@
+<?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],
+        ];
+    }
+}
\ No newline at end of file