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