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) ); } }