From dc3e7bda7124d19776aaa58c752b6d43f7474fe3 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Mon, 29 Nov 2021 07:23:49 -0600 Subject: [PATCH] Tests/SFTP: PHP 8.1 error message changed --- tests/Functional/Net/SFTPWrongServerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Functional/Net/SFTPWrongServerTest.php b/tests/Functional/Net/SFTPWrongServerTest.php index 99dd3259..0afe454b 100644 --- a/tests/Functional/Net/SFTPWrongServerTest.php +++ b/tests/Functional/Net/SFTPWrongServerTest.php @@ -14,8 +14,8 @@ class SFTPWrongServerTest extends TestCase } catch (UnableToConnectException $e) { // getaddrinfo message seems not to return stable text static::assertSame( - 'Cannot connect to dummy-server:22. Error 0. php_network_getaddresses: getaddrinfo failed:', - substr($e->getMessage(),0,89) + 'Cannot connect to dummy-server:22. Error 0. php_network_getaddresses: getaddrinfo', + substr($e->getMessage(),0,81) ); } }