1 | <?php |
||
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 | } |