[Mailer] fixed tests on Windows

This commit is contained in:
Fabien Potencier 2019-06-27 18:29:52 +02:00
parent d18fd01c39
commit 90f61e9efa
1 changed files with 2 additions and 2 deletions

View File

@ -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()
{