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