Completed
Push — master ( b91597...be19b0 )
by Mitchel
02:09
created

DefaultTokenTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A itRepresentsADefaultToken() 0 8 1
1
<?php
2
3
namespace Bunq\Tests\Token;
4
5
use Bunq\Token\DefaultToken;
6
use Bunq\Token\Token;
7
use PHPUnit\Framework\TestCase;
8
9
final class DefaultTokenTest extends TestCase
10
{
11
    /**
12
     * @test
13
     */
14
    public function itRepresentsADefaultToken()
15
    {
16
        $token = DefaultToken::fromString('string');
17
18
        $this->assertInstanceOf(Token::class, $token);
19
        $this->assertSame('string', $token->toString());
20
        $this->assertSame('string', (string)$token);
21
    }
22
}
23