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