diff options
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/Security/CertificateTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Security/CertificateTest.php b/tests/lib/Security/CertificateTest.php index c787cc3355f..3b833974321 100644 --- a/tests/lib/Security/CertificateTest.php +++ b/tests/lib/Security/CertificateTest.php @@ -40,7 +40,12 @@ class CertificateTest extends \Test\TestCase { $certificate->getIssueDate(); } - + public function testOpenSslTrustedCertificateFormat(): void { + $trustedCertificate = file_get_contents(__DIR__ . '/../../data/certificates/openSslTrustedCertificate.crt'); + $certificate = new Certificate($trustedCertificate, 'TrustedCertificate'); + $this->assertSame('thawte, Inc.', $certificate->getOrganization()); + } + public function testCertificateStartingWithFileReference(): void { $this->expectException(\Exception::class); $this->expectExceptionMessage('Certificate could not get parsed.'); |