File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Tests/Transport/Smtp/Stream Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Mailer \Tests \Transport \Smtp \Stream ;
1313
1414use PHPUnit \Framework \TestCase ;
15+ use Symfony \Component \Mailer \Exception \TransportException ;
1516use Symfony \Component \Mailer \Transport \Smtp \Stream \SocketStream ;
1617
1718class SocketStreamTest extends TestCase
1819{
1920 public function testSocketErrorNoConnection ()
2021 {
21- $ this ->expectException (\ Symfony \ Component \ Mailer \ Exception \ TransportException::class);
22+ $ this ->expectException (TransportException::class);
2223 $ this ->expectExceptionMessageMatches ('/Connection refused|unable to connect/ ' );
2324 $ s = new SocketStream ();
2425 $ s ->setTimeout (0.1 );
@@ -28,7 +29,7 @@ public function testSocketErrorNoConnection()
2829
2930 public function testSocketErrorBeforeConnectError ()
3031 {
31- $ this ->expectException (\ Symfony \ Component \ Mailer \ Exception \ TransportException::class);
32+ $ this ->expectException (TransportException::class);
3233 $ this ->expectExceptionMessageMatches ('/no valid certs found cafile stream|Unable to find the socket transport "ssl"/ ' );
3334 $ s = new SocketStream ();
3435 $ s ->setStreamOptions ([
You can’t perform that action at this time.
0 commit comments