Skip to content

Commit a491bb3

Browse files
committed
ConsumerKey test
1 parent 5cfbcfa commit a491bb3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Definition/ConsumerKeyTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace ApiClients\Tests\Tools\Psr7\Oauth1\Definition;
4+
5+
use ApiClients\Tools\Psr7\Oauth1\Definition\ConsumerKey;
6+
7+
class ConsumerKeyTest extends \PHPUnit_Framework_TestCase
8+
{
9+
public function testAccessToken()
10+
{
11+
$key = 'key';
12+
$consumerKey = new ConsumerKey($key);
13+
$this->assertSame($key, $consumerKey->getConsumerKey());
14+
$this->assertSame($key, (string)$consumerKey);
15+
}
16+
}

0 commit comments

Comments
 (0)