mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 22:43:40 +00:00
23 lines
455 B
PHP
23 lines
455 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Abraham\TwitterOAuth\Tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Abraham\TwitterOAuth\Consumer;
|
|
|
|
class ConsumerTest extends TestCase
|
|
{
|
|
public function testToString()
|
|
{
|
|
$key = uniqid();
|
|
$secret = uniqid();
|
|
$consumer = new Consumer($key, $secret);
|
|
|
|
$this->assertEquals(
|
|
"Consumer[key=$key,secret=$secret]",
|
|
$consumer->__toString()
|
|
);
|
|
}
|
|
}
|