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

TokenNotFoundExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A itRepresentsATokenNotFoundException() 0 7 1
1
<?php
2
3
namespace Bunq\Tests\Certificate\Storage;
4
5
use Bunq\Token\Storage\TokenNotFoundException;
6
use Bunq\Token\TokenType;
7
use PHPUnit\Framework\TestCase;
8
9
final class TokenNotFoundExceptionTest extends TestCase
10
{
11
    /**
12
     * @test
13
     */
14
    public function itRepresentsATokenNotFoundException()
15
    {
16
        $exception = new TokenNotFoundException(TokenType::INSTALLATION_TOKEN(), '/tmp/tokens');
17
18
        $this->assertInstanceOf(\Exception::class, $exception);
19
        $this->assertEquals('Could not find token "installation.token" in path: /tmp/tokens', $exception->getMessage());
20
    }
21
}
22
23