@@ -63,51 +63,51 @@ public function testCertificateStartingWithFileReference() {
6363 new Certificate ('file:// ' .__DIR__ . '/../../data/certificates/goodCertificate.crt ' , 'bar ' );
6464 }
6565
66- public function testGetName () {
66+ public function testGetName (): void {
6767 $ this ->assertSame ('GoodCertificate ' , $ this ->goodCertificate ->getName ());
6868 $ this ->assertSame ('BadCertificate ' , $ this ->invalidCertificate ->getName ());
6969 }
7070
71- public function testGetCommonName () {
72- $ this ->assertSame ('security.owncloud .com ' , $ this ->goodCertificate ->getCommonName ());
71+ public function testGetCommonName (): void {
72+ $ this ->assertSame ('security.nextcloud .com ' , $ this ->goodCertificate ->getCommonName ());
7373 $ this ->assertSame (null , $ this ->invalidCertificate ->getCommonName ());
7474 }
7575
76- public function testGetOrganization () {
77- $ this ->assertSame ('ownCloud Security ' , $ this ->goodCertificate ->getOrganization ());
76+ public function testGetOrganization (): void {
77+ $ this ->assertSame ('Nextcloud Security ' , $ this ->goodCertificate ->getOrganization ());
7878 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->invalidCertificate ->getOrganization ());
7979 }
8080
81- public function testGetIssueDate () {
82- $ expected = new \DateTime ('2015 -08-27 20:03:42 GMT ' );
81+ public function testGetIssueDate (): void {
82+ $ expected = new \DateTime ('2025 -08-25 09:53:14 GMT ' );
8383 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->goodCertificate ->getIssueDate ()->getTimestamp ());
84- $ expected = new \DateTime ('2015 -08-27 20:19:13 GMT ' );
84+ $ expected = new \DateTime ('2025 -08-25 10:00:15 GMT ' );
8585 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->invalidCertificate ->getIssueDate ()->getTimestamp ());
8686 }
8787
88- public function testGetExpireDate () {
89- $ expected = new \DateTime ('2025 -08-24 20:03:42 GMT ' );
88+ public function testGetExpireDate (): void {
89+ $ expected = new \DateTime ('2035 -08-23 09:53:14 GMT ' );
9090 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->goodCertificate ->getExpireDate ()->getTimestamp ());
91- $ expected = new \DateTime ('2025 -08-24 20:19:13 GMT ' );
91+ $ expected = new \DateTime ('2035 -08-23 10:00:15 GMT ' );
9292 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->invalidCertificate ->getExpireDate ()->getTimestamp ());
9393 $ expected = new \DateTime ('2014-08-28 09:12:43 GMT ' );
9494 $ this ->assertEquals ($ expected ->getTimestamp (), $ this ->expiredCertificate ->getExpireDate ()->getTimestamp ());
9595 }
9696
97- public function testIsExpired () {
97+ public function testIsExpired (): void {
9898 $ this ->assertSame (false , $ this ->goodCertificate ->isExpired ());
9999 $ this ->assertSame (false , $ this ->invalidCertificate ->isExpired ());
100100 $ this ->assertSame (true , $ this ->expiredCertificate ->isExpired ());
101101 }
102102
103- public function testGetIssuerName () {
104- $ this ->assertSame ('security.owncloud .com ' , $ this ->goodCertificate ->getIssuerName ());
103+ public function testGetIssuerName (): void {
104+ $ this ->assertSame ('security.nextcloud .com ' , $ this ->goodCertificate ->getIssuerName ());
105105 $ this ->assertSame (null , $ this ->invalidCertificate ->getIssuerName ());
106106 $ this ->assertSame (null , $ this ->expiredCertificate ->getIssuerName ());
107107 }
108108
109- public function testGetIssuerOrganization () {
110- $ this ->assertSame ('ownCloud Security ' , $ this ->goodCertificate ->getIssuerOrganization ());
109+ public function testGetIssuerOrganization (): void {
110+ $ this ->assertSame ('Nextcloud Security ' , $ this ->goodCertificate ->getIssuerOrganization ());
111111 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->invalidCertificate ->getIssuerOrganization ());
112112 $ this ->assertSame ('Internet Widgits Pty Ltd ' , $ this ->expiredCertificate ->getIssuerOrganization ());
113113 }
0 commit comments