]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/vendor/abraham/twitteroauth/tests/ConsumerTest.php
Merge branch '3.6-rc'
[friendica-addons.git] / twitter / vendor / abraham / twitteroauth / tests / ConsumerTest.php
diff --git a/twitter/vendor/abraham/twitteroauth/tests/ConsumerTest.php b/twitter/vendor/abraham/twitteroauth/tests/ConsumerTest.php
new file mode 100644 (file)
index 0000000..3ec810a
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+namespace Abraham\TwitterOAuth\Tests;
+
+use Abraham\TwitterOAuth\Consumer;
+
+class ConsumerTest extends \PHPUnit_Framework_TestCase {
+    public function testToString()
+    {
+        $key = uniqid();
+        $secret = uniqid();
+        $consumer = new Consumer($key, $secret);
+
+        $this->assertEquals("Consumer[key=$key,secret=$secret]", $consumer->__toString());
+    }
+}
\ No newline at end of file