From a46fce402c315dfe65b08ef4de77bdd3319fefd7 Mon Sep 17 00:00:00 2001 From: Roman Martinuk Date: Fri, 16 Apr 2021 15:10:02 +0300 Subject: [PATCH] fix test SocketStreamTest for Windows --- .../Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php b/src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php index e4ca6aa45e..f06160d009 100644 --- a/src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php +++ b/src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php @@ -20,7 +20,7 @@ class SocketStreamTest extends TestCase public function testSocketErrorNoConnection() { $this->expectException(TransportException::class); - $this->expectExceptionMessageMatches('/Connection refused|unable to connect/'); + $this->expectExceptionMessageMatches('/Connection refused|unable to connect/i'); $s = new SocketStream(); $s->setTimeout(0.1); $s->setPort(9999);