Skip to content

Commit 5208a64

Browse files
committed
[Mailer] fixed tests on Windows
1 parent 08f51d8 commit 5208a64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SocketStreamTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SocketStreamTest extends TestCase
1818
{
1919
/**
2020
* @expectedException \Symfony\Component\Mailer\Exception\TransportException
21-
* @expectedExceptionMessage Connection refused
21+
* @expectedExceptionMessageRegExp /Connection refused|unable to connect/
2222
*/
2323
public function testSocketErrorNoConnection()
2424
{
@@ -30,7 +30,7 @@ public function testSocketErrorNoConnection()
3030

3131
/**
3232
* @expectedException \Symfony\Component\Mailer\Exception\TransportException
33-
* @expectedExceptionMessage no valid certs found cafile stream
33+
* @expectedExceptionMessageRegExp /no valid certs found cafile stream|Unable to find the socket transport "ssl"/
3434
*/
3535
public function testSocketErrorBeforeConnectError()
3636
{

Tests/Transport/Smtp/Stream/SocketStreamTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SocketStreamTest extends TestCase
1818
{
1919
/**
2020
* @expectedException \Symfony\Component\Mailer\Exception\TransportException
21-
* @expectedExceptionMessage Connection refused
21+
* @expectedExceptionMessageRegExp /Connection refused|unable to connect/
2222
*/
2323
public function testSocketErrorNoConnection()
2424
{
@@ -30,7 +30,7 @@ public function testSocketErrorNoConnection()
3030

3131
/**
3232
* @expectedException \Symfony\Component\Mailer\Exception\TransportException
33-
* @expectedExceptionMessage no valid certs found cafile stream
33+
* @expectedExceptionMessageRegExp /no valid certs found cafile stream|Unable to find the socket transport "ssl"/
3434
*/
3535
public function testSocketErrorBeforeConnectError()
3636
{

0 commit comments

Comments
 (0)