Passed
Pull Request — master (#103)
by Razvan
15:39 queued 12:47
created

WWDRTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
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
}