Tests/SFTP: PHP 8.1 error message changed

This commit is contained in:
terrafrost 2021-11-29 07:23:49 -06:00
parent 89bfb45bd8
commit dc3e7bda71

View File

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