Skip to content

Commit d3aadf3

Browse files
committed
[Mailer] fixed tests on Windows
1 parent 9820fb0 commit d3aadf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)