diff options
Diffstat (limited to 'tests/lib/security/certificate.php')
-rw-r--r-- | tests/lib/security/certificate.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/security/certificate.php b/tests/lib/security/certificate.php index 4caacf900e7..e59f06db5c4 100644 --- a/tests/lib/security/certificate.php +++ b/tests/lib/security/certificate.php @@ -36,6 +36,14 @@ class CertificateTest extends \Test\TestCase { new Certificate('foo', 'bar'); } + /** + * @expectedException \Exception + * @expectedExceptionMessage Certificate could not get parsed. + */ + function testCertificateStartingWithFileReference() { + new Certificate('file://'.__DIR__ . '/../../data/certificates/goodCertificate.crt', 'bar'); + } + function testGetName() { $this->assertSame('GoodCertificate', $this->goodCertificate->getName()); $this->assertSame('BadCertificate', $this->invalidCertificate->getName()); |