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

itRepresentsACertificateNotFoundException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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