Skip to content

Commit 7083f3b

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Use ::class keyword when possible
2 parents fe8758e + e92965c commit 7083f3b

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
public function testSocketErrorNoConnection()
2020
{
21-
$this->expectException('Symfony\Component\Mailer\Exception\TransportException');
21+
$this->expectException(\Symfony\Component\Mailer\Exception\TransportException::class);
2222
$this->expectExceptionMessageMatches('/Connection refused|unable to connect/');
2323
$s = new SocketStream();
2424
$s->setTimeout(0.1);
@@ -28,7 +28,7 @@ public function testSocketErrorNoConnection()
2828

2929
public function testSocketErrorBeforeConnectError()
3030
{
31-
$this->expectException('Symfony\Component\Mailer\Exception\TransportException');
31+
$this->expectException(\Symfony\Component\Mailer\Exception\TransportException::class);
3232
$this->expectExceptionMessageMatches('/no valid certs found cafile stream|Unable to find the socket transport "ssl"/');
3333
$s = new SocketStream();
3434
$s->setStreamOptions([

0 commit comments

Comments
 (0)