Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class CredentialsTest extends TestCase |
||
14 | { |
||
15 | public function testConstructCorrectInterface(): void |
||
16 | { |
||
17 | $credentials = new Credentials('foo', 'bar', 'baz'); |
||
18 | |||
19 | self::assertInstanceOf('\\OAuth\\Common\\Consumer\\CredentialsInterface', $credentials); |
||
20 | } |
||
21 | |||
22 | public function testGetConsumerId(): void |
||
23 | { |
||
24 | $credentials = new Credentials('foo', 'bar', 'baz'); |
||
25 | |||
26 | self::assertSame('foo', $credentials->getConsumerId()); |
||
27 | } |
||
28 | |||
29 | public function testGetConsumerSecret(): void |
||
30 | { |
||
31 | $credentials = new Credentials('foo', 'bar', 'baz'); |
||
32 | |||
33 | self::assertSame('bar', $credentials->getConsumerSecret()); |
||
34 | } |
||
35 | |||
36 | public function testGetCallbackUrl(): void |
||
41 | } |
||
42 | } |
||
43 |