WWDRTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testWWDR() 0 4 1
A testWWDRException() 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
}
23