@@ -62,51 +62,51 @@ public function testCertificateStartingWithFileReference() {
6262 new Certificate ('file:// ' .__DIR__ . '/../../data/certificates/goodCertificate.crt ' , 'bar ' );
6363 }
6464
65- public function testGetName () {
65+ public function testGetName (): void {
6666 $ this ->assertSame ('GoodCertificate ' , $ this ->goodCertificate ->getName ());
6767 $ this ->assertSame ('BadCertificate ' , $ this ->invalidCertificate ->getName ());
6868 }
6969
70- public function testGetCommonName () {
71- $ this ->assertSame ('security.owncloud .com ' , $ this ->goodCertificate ->getCommonName ());
70+ public function testGetCommonName (): void {
71+ $ this ->assertSame ('security.nextcloud .com ' , $ this ->goodCertificate ->getCommonName ());
7272 $ this ->assertSame (null , $ this ->invalidCertificate ->getCommonName ());
7373 }
7474
75- public function testGetOrganization () {
76- $ this ->assertSame ('ownCloud Security ' , $ this ->goodCertificate ->getOrganization ());
75+ public function testGetOrganization (): void {
76+ $ this ->assertSame ('Nextcloud Security ' , $ this ->goodCertificate ->getOrganization ());
7777 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->invalidCertificate ->getOrganization ());
7878 }
7979
80- public function testGetIssueDate () {
81- $ expected = new \DateTime ('2015 -08-27 20:03:42 GMT ' );
80+ public function testGetIssueDate (): void {
81+ $ expected = new \DateTime ('2025 -08-25 09:53:14 GMT ' );
8282 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->goodCertificate ->getIssueDate ()->getTimestamp ());
83- $ expected = new \DateTime ('2015 -08-27 20:19:13 GMT ' );
83+ $ expected = new \DateTime ('2025 -08-25 10:00:15 GMT ' );
8484 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->invalidCertificate ->getIssueDate ()->getTimestamp ());
8585 }
8686
87- public function testGetExpireDate () {
88- $ expected = new \DateTime ('2025 -08-24 20:03:42 GMT ' );
87+ public function testGetExpireDate (): void {
88+ $ expected = new \DateTime ('2035 -08-23 09:53:14 GMT ' );
8989 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->goodCertificate ->getExpireDate ()->getTimestamp ());
90- $ expected = new \DateTime ('2025 -08-24 20:19:13 GMT ' );
90+ $ expected = new \DateTime ('2035 -08-23 10:00:15 GMT ' );
9191 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->invalidCertificate ->getExpireDate ()->getTimestamp ());
9292 $ expected = new \DateTime ('2014-08-28 09:12:43 GMT ' );
9393 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->expiredCertificate ->getExpireDate ()->getTimestamp ());
9494 }
9595
96- public function testIsExpired () {
96+ public function testIsExpired (): void {
9797 $ this ->assertSame (false , $ this ->goodCertificate ->isExpired ());
9898 $ this ->assertSame (false , $ this ->invalidCertificate ->isExpired ());
9999 $ this ->assertSame (true , $ this ->expiredCertificate ->isExpired ());
100100 }
101101
102- public function testGetIssuerName () {
103- $ this ->assertSame ('security.owncloud .com ' , $ this ->goodCertificate ->getIssuerName ());
102+ public function testGetIssuerName (): void {
103+ $ this ->assertSame ('security.nextcloud .com ' , $ this ->goodCertificate ->getIssuerName ());
104104 $ this ->assertSame (null , $ this ->invalidCertificate ->getIssuerName ());
105105 $ this ->assertSame (null , $ this ->expiredCertificate ->getIssuerName ());
106106 }
107107
108- public function testGetIssuerOrganization () {
109- $ this ->assertSame ('ownCloud Security ' , $ this ->goodCertificate ->getIssuerOrganization ());
108+ public function testGetIssuerOrganization (): void {
109+ $ this ->assertSame ('Nextcloud Security ' , $ this ->goodCertificate ->getIssuerOrganization ());
110110 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->invalidCertificate ->getIssuerOrganization ());
111111 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->expiredCertificate ->getIssuerOrganization ());
112112 }
0 commit comments