From 52aa8f0e5ad825ed9121e1c78f6331485504d7b2 Mon Sep 17 00:00:00 2001 From: "Thomas A. Hirsch" Date: Mon, 30 Dec 2024 10:28:30 +0100 Subject: [PATCH] Renewed execution environment. --- tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php b/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php index 3b39403b8..62466014b 100644 --- a/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php +++ b/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php @@ -29,7 +29,7 @@ public function testMessage1Generator() public function testLMv1Generator() { - if (!in_array('des-ecb', openssl_get_cipher_methods())) { + if (array_filter(openssl_get_cipher_methods(), fn ($c) => !strcasecmp($c, 'des-ecb'))) { $this->markTestSkipped('Need Cipher DES-ECB to run these tests.'); }