File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/Transport/Smtp/Stream Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class SocketStreamTest extends TestCase
19
19
public function testSocketErrorNoConnection ()
20
20
{
21
21
$ this ->expectException ('Symfony\Component\Mailer\Exception\TransportException ' );
22
- $ this ->expectExceptionMessageRegExp ('/Connection refused|unable to connect/ ' );
22
+ $ this ->expectExceptionMessageMatches ('/Connection refused|unable to connect/ ' );
23
23
$ s = new SocketStream ();
24
24
$ s ->setTimeout (0.1 );
25
25
$ s ->setPort (9999 );
@@ -29,7 +29,7 @@ public function testSocketErrorNoConnection()
29
29
public function testSocketErrorBeforeConnectError ()
30
30
{
31
31
$ this ->expectException ('Symfony\Component\Mailer\Exception\TransportException ' );
32
- $ this ->expectExceptionMessageRegExp ('/no valid certs found cafile stream|Unable to find the socket transport "ssl"/ ' );
32
+ $ this ->expectExceptionMessageMatches ('/no valid certs found cafile stream|Unable to find the socket transport "ssl"/ ' );
33
33
$ s = new SocketStream ();
34
34
$ s ->setStreamOptions ([
35
35
'ssl ' => [
You can’t perform that action at this time.
0 commit comments