Skip to content

Commit d4861a4

Browse files
committed
use proper methods to assert exception messages contain certain strings
1 parent ac7d182 commit d4861a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Transport/NativeTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function ini_get(\$key)
4747
public function testCreateWithNotSupportedScheme()
4848
{
4949
$this->expectException(UnsupportedSchemeException::class);
50-
$this->expectErrorMessageMatches('#The ".*" scheme is not supported#');
50+
$this->expectExceptionMessage('The "sendmail" scheme is not supported');
5151

5252
$sut = new NativeTransportFactory();
5353
$sut->create(Dsn::fromString('sendmail://default'));

0 commit comments

Comments
 (0)