Completed
Push — master ( a5b05f...ea8859 )
by Eymen
18s queued 12s
created

WWDRTest::testWWDRException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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