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

P12Test   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 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
}