Skip to content

Commit f4b7a7f

Browse files
soyukanicolas-grekas
authored andcommitted
[PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions
1 parent 449856e commit f4b7a7f

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
@@ -19,7 +19,7 @@ class SocketStreamTest extends TestCase
1919
public function testSocketErrorNoConnection()
2020
{
2121
$this->expectException('Symfony\Component\Mailer\Exception\TransportException');
22-
$this->expectExceptionMessageRegExp('/Connection refused|unable to connect/');
22+
$this->expectExceptionMessageMatches('/Connection refused|unable to connect/');
2323
$s = new SocketStream();
2424
$s->setTimeout(0.1);
2525
$s->setPort(9999);
@@ -29,7 +29,7 @@ public function testSocketErrorNoConnection()
2929
public function testSocketErrorBeforeConnectError()
3030
{
3131
$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"/');
3333
$s = new SocketStream();
3434
$s->setStreamOptions([
3535
'ssl' => [

0 commit comments

Comments
 (0)