File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Tests/Transport/Smtp/Stream Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1616
1717class SocketStreamTest extends TestCase
1818{
19- /**
20- * @expectedException \Symfony\Component\Mailer\Exception\TransportException
21- * @expectedExceptionMessageRegExp /Connection refused|unable to connect/
22- */
2319 public function testSocketErrorNoConnection ()
2420 {
21+ $ this ->expectException ('Symfony\Component\Mailer\Exception\TransportException ' );
22+ $ this ->expectExceptionMessageRegExp ('/Connection refused|unable to connect/ ' );
2523 $ s = new SocketStream ();
2624 $ s ->setTimeout (0.1 );
2725 $ s ->setPort (9999 );
2826 $ s ->initialize ();
2927 }
3028
31- /**
32- * @expectedException \Symfony\Component\Mailer\Exception\TransportException
33- * @expectedExceptionMessageRegExp /no valid certs found cafile stream|Unable to find the socket transport "ssl"/
34- */
3529 public function testSocketErrorBeforeConnectError ()
3630 {
31+ $ this ->expectException ('Symfony\Component\Mailer\Exception\TransportException ' );
32+ $ this ->expectExceptionMessageRegExp ('/no valid certs found cafile stream|Unable to find the socket transport "ssl"/ ' );
3733 $ s = new SocketStream ();
3834 $ s ->setStreamOptions ([
3935 'ssl ' => [
You can’t perform that action at this time.
0 commit comments