diff --git a/tests/Smtp/AsyncSmtpConnectionIntegrationTest.php b/tests/Smtp/AsyncSmtpConnectionIntegrationTest.php index b5acf08..667d50a 100644 --- a/tests/Smtp/AsyncSmtpConnectionIntegrationTest.php +++ b/tests/Smtp/AsyncSmtpConnectionIntegrationTest.php @@ -80,7 +80,7 @@ public function testInvalidHostName(): void $this->assertInstanceOf(RuntimeException::class, $exception); $this->assertStringStartsWith( sprintf( - 'Connection to %s:%s failed: php_network_getaddresses: getaddrinfo failed', + 'Connection to %1$s:%2$s failed: php_network_getaddresses: getaddrinfo for %1$s failed: Name or service not known', $settings->getHost(), $settings->getPort(), ),