Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -9,7 +9,7 @@ class Domain_Test extends WP_UnitTestCase {
|
||||
/**
|
||||
* Test that has_valid_ssl_certificate returns true for valid SSL certificates.
|
||||
*/
|
||||
public function test_has_valid_ssl_certificate_with_valid_certificate() {
|
||||
public function test_has_valid_ssl_certificate_with_valid_certificate(): void {
|
||||
// Mocking a domain with a valid SSL certificate.
|
||||
$domain = new Domain();
|
||||
$domain->set_domain('dogs.4thelols.uk');
|
||||
@ -21,7 +21,7 @@ class Domain_Test extends WP_UnitTestCase {
|
||||
/**
|
||||
* Test that has_valid_ssl_certificate returns false when the SSL certificate is invalid.
|
||||
*/
|
||||
public function test_has_valid_ssl_certificate_with_invalid_certificate() {
|
||||
public function test_has_valid_ssl_certificate_with_invalid_certificate(): void {
|
||||
// Mocking a domain with an invalid SSL certificate.
|
||||
$domain = new Domain();
|
||||
$domain->set_domain('eeeeeeeeeeeeeeeeauauexample.com');
|
||||
@ -33,7 +33,7 @@ class Domain_Test extends WP_UnitTestCase {
|
||||
/**
|
||||
* Test that has_valid_ssl_certificate handles empty domain.
|
||||
*/
|
||||
public function test_has_valid_ssl_certificate_with_empty_domain() {
|
||||
public function test_has_valid_ssl_certificate_with_empty_domain(): void {
|
||||
// Mocking a domain with an empty value.
|
||||
$domain = new Domain();
|
||||
$domain->set_domain('');
|
||||
|
Reference in New Issue
Block a user