| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function shouldSuccessCreate() |
||
| 34 | { |
||
| 35 | $tmpDir = sys_get_temp_dir(); |
||
| 36 | $file = $tmpDir.'/'.md5(uniqid(random_int(0, 9999), true)).'.pem'; |
||
| 37 | touch($file); |
||
| 38 | |||
| 39 | $certificate = new Certificate($file, 'pass-phrase'); |
||
| 40 | |||
| 41 | self::assertEquals($file, $certificate->getPath()); |
||
| 42 | self::assertEquals('pass-phrase', $certificate->getPassPhrase()); |
||
| 43 | |||
| 44 | unlink($file); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |