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

P12Test::testP12()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Passbook\Tests\Certificate;
4
5
use Passbook\Certificate\P12;
6
use Passbook\Exception\FileNotFoundException;
7
use PHPUnit\Framework\TestCase;
8
9
class P12Test extends TestCase
10
{
11
    public function testP12()
12
    {
13
        $p12 = new P12(__DIR__.'/../../../cert/pass.com.example.testpass.p12', '123456');
14
15
        $this->assertEquals($p12->getPassword(), '123456');
16
    }
17
18
    public function testP12Exception()
19
    {
20
        $this->expectException(FileNotFoundException::class);
21
        new P12(__DIR__.'/non-existing-file', '123456');
22
    }
23
}