Passed
Push — maintenance-work ( b6a05d...a58b3b )
by Razvan
12:47
created

WWDRTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testWWDRException() 0 4 1
A testWWDR() 0 4 1
1
<?php
2
3
namespace Passbook\Tests\Certificate;
4
5
use Passbook\Certificate\WWDR;
6
use Passbook\Exception\FileNotFoundException;
7
use PHPUnit\Framework\TestCase;
8
9
class WWDRTest extends TestCase
10
{
11
    public function testWWDR()
12
    {
13
        $wwdr = new WWDR(__DIR__.'/../../../cert/wwdr.pem');
14
        $this->assertInstanceOf(WWDR::class, $wwdr);
15
    }
16
17
    public function testWWDRException()
18
    {
19
        $this->expectException(FileNotFoundException::class);
20
        new WWDR(__DIR__.'/non-existing-file');
21
    }
22
}