WWDRTest::testWWDR()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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