@@ -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- 		$ expectednew  \DateTime ('2015 -08-27 20:03:42  GMT );
80+ 	public  function  testGetIssueDate ():  void  {
81+ 		$ expectednew  \DateTime ('2025 -08-25 09:53:14  GMT );
8282		$ this assertEquals ($ expectedgetTimestamp (), $ this goodCertificate ->getIssueDate ()->getTimestamp ());
83- 		$ expectednew  \DateTime ('2015 -08-27 20:19:13  GMT );
83+ 		$ expectednew  \DateTime ('2025 -08-25 10:00:15  GMT );
8484		$ this assertEquals ($ expectedgetTimestamp (), $ this invalidCertificate ->getIssueDate ()->getTimestamp ());
8585	}
8686
87- 	public  function  testGetExpireDate () {
88- 		$ expectednew  \DateTime ('2025 -08-24 20:03:42  GMT );
87+ 	public  function  testGetExpireDate ():  void  {
88+ 		$ expectednew  \DateTime ('2035 -08-23 09:53:14  GMT );
8989		$ this assertEquals ($ expectedgetTimestamp (), $ this goodCertificate ->getExpireDate ()->getTimestamp ());
90- 		$ expectednew  \DateTime ('2025 -08-24 20:19:13  GMT );
90+ 		$ expectednew  \DateTime ('2035 -08-23 10:00:15  GMT );
9191		$ this assertEquals ($ expectedgetTimestamp (), $ this invalidCertificate ->getExpireDate ()->getTimestamp ());
9292		$ expectednew  \DateTime ('2014-08-28 09:12:43 GMT ' );
9393		$ this assertEquals ($ expectedgetTimestamp (), $ 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