@@ -59,26 +59,26 @@ public function testGetName(): void {
5959 }
6060
6161 public function testGetCommonName (): void {
62- $ this ->assertSame ('security.owncloud .com ' , $ this ->goodCertificate ->getCommonName ());
62+ $ this ->assertSame ('security.nextcloud .com ' , $ this ->goodCertificate ->getCommonName ());
6363 $ this ->assertSame (null , $ this ->invalidCertificate ->getCommonName ());
6464 }
6565
6666 public function testGetOrganization (): void {
67- $ this ->assertSame ('ownCloud Security ' , $ this ->goodCertificate ->getOrganization ());
67+ $ this ->assertSame ('Nextcloud Security ' , $ this ->goodCertificate ->getOrganization ());
6868 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->invalidCertificate ->getOrganization ());
6969 }
7070
7171 public function testGetIssueDate (): void {
72- $ expected = new \DateTime ('2015 -08-27 20:03:42 GMT ' );
72+ $ expected = new \DateTime ('2025 -08-25 09:53:14 GMT ' );
7373 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->goodCertificate ->getIssueDate ()->getTimestamp ());
74- $ expected = new \DateTime ('2015 -08-27 20:19:13 GMT ' );
74+ $ expected = new \DateTime ('2025 -08-25 10:00:15 GMT ' );
7575 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->invalidCertificate ->getIssueDate ()->getTimestamp ());
7676 }
7777
7878 public function testGetExpireDate (): void {
79- $ expected = new \DateTime ('2025 -08-24 20:03:42 GMT ' );
79+ $ expected = new \DateTime ('2035 -08-23 09:53:14 GMT ' );
8080 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->goodCertificate ->getExpireDate ()->getTimestamp ());
81- $ expected = new \DateTime ('2025 -08-24 20:19:13 GMT ' );
81+ $ expected = new \DateTime ('2035 -08-23 10:00:15 GMT ' );
8282 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->invalidCertificate ->getExpireDate ()->getTimestamp ());
8383 $ expected = new \DateTime ('2014-08-28 09:12:43 GMT ' );
8484 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->expiredCertificate ->getExpireDate ()->getTimestamp ());
@@ -91,13 +91,13 @@ public function testIsExpired(): void {
9191 }
9292
9393 public function testGetIssuerName (): void {
94- $ this ->assertSame ('security.owncloud .com ' , $ this ->goodCertificate ->getIssuerName ());
94+ $ this ->assertSame ('security.nextcloud .com ' , $ this ->goodCertificate ->getIssuerName ());
9595 $ this ->assertSame (null , $ this ->invalidCertificate ->getIssuerName ());
9696 $ this ->assertSame (null , $ this ->expiredCertificate ->getIssuerName ());
9797 }
9898
9999 public function testGetIssuerOrganization (): void {
100- $ this ->assertSame ('ownCloud Security ' , $ this ->goodCertificate ->getIssuerOrganization ());
100+ $ this ->assertSame ('Nextcloud Security ' , $ this ->goodCertificate ->getIssuerOrganization ());
101101 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->invalidCertificate ->getIssuerOrganization ());
102102 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->expiredCertificate ->getIssuerOrganization ());
103103 }
0 commit comments