2018-01-28 17:17:19 +00:00
|
|
|
<?php
|
|
|
|
|
2021-09-13 18:51:12 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-01-28 17:17:19 +00:00
|
|
|
namespace Abraham\TwitterOAuth\Tests;
|
|
|
|
|
2021-09-13 18:51:12 +00:00
|
|
|
use PHPUnit\Framework\TestCase;
|
2018-01-28 17:17:19 +00:00
|
|
|
use Abraham\TwitterOAuth\Consumer;
|
|
|
|
|
2021-09-13 18:51:12 +00:00
|
|
|
class ConsumerTest extends TestCase
|
|
|
|
{
|
2018-01-28 17:17:19 +00:00
|
|
|
public function testToString()
|
|
|
|
{
|
|
|
|
$key = uniqid();
|
|
|
|
$secret = uniqid();
|
|
|
|
$consumer = new Consumer($key, $secret);
|
|
|
|
|
2021-09-13 18:51:12 +00:00
|
|
|
$this->assertEquals(
|
|
|
|
"Consumer[key=$key,secret=$secret]",
|
|
|
|
$consumer->__toString()
|
|
|
|
);
|
2018-01-28 17:17:19 +00:00
|
|
|
}
|
2021-09-13 18:51:12 +00:00
|
|
|
}
|