18 lines
382 B
PHP
Executable File
18 lines
382 B
PHP
Executable File
<?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());
|
|
}
|
|
}
|