mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
Tests/SFTP: PHP 8.1 error message changed
This commit is contained in:
parent
89bfb45bd8
commit
dc3e7bda71
@ -14,8 +14,8 @@ class SFTPWrongServerTest extends TestCase
|
|||||||
} catch (UnableToConnectException $e) {
|
} catch (UnableToConnectException $e) {
|
||||||
// getaddrinfo message seems not to return stable text
|
// getaddrinfo message seems not to return stable text
|
||||||
static::assertSame(
|
static::assertSame(
|
||||||
'Cannot connect to dummy-server:22. Error 0. php_network_getaddresses: getaddrinfo failed:',
|
'Cannot connect to dummy-server:22. Error 0. php_network_getaddresses: getaddrinfo',
|
||||||
substr($e->getMessage(),0,89)
|
substr($e->getMessage(),0,81)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user