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

CertificateNotFoundExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

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