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 1f532d7c10..b825d1d19a 100644 --- a/src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php +++ b/src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php @@ -18,7 +18,7 @@ class SocketStreamTest extends TestCase { /** * @expectedException \Symfony\Component\Mailer\Exception\TransportException - * @expectedExceptionMessage Connection refused + * @expectedExceptionMessageRegExp /Connection refused|unable to connect/ */ public function testSocketErrorNoConnection() { @@ -30,7 +30,7 @@ class SocketStreamTest extends TestCase /** * @expectedException \Symfony\Component\Mailer\Exception\TransportException - * @expectedExceptionMessage no valid certs found cafile stream + * @expectedExceptionMessageRegExp /no valid certs found cafile stream|Unable to find the socket transport "ssl"/ */ public function testSocketErrorBeforeConnectError() {