diff --git a/test/PHPMailer/DSNConfiguratorTest.php b/test/PHPMailer/DSNConfiguratorTest.php index 547331f42..87ffa49ef 100644 --- a/test/PHPMailer/DSNConfiguratorTest.php +++ b/test/PHPMailer/DSNConfiguratorTest.php @@ -34,7 +34,7 @@ public function testInvalidDSN() $configurator = new DSNConfigurator(); $this->expectException(Exception::class); - $this->expectExceptionMessage('Malformed DSN: "localhost".'); + $this->expectExceptionMessage('Malformed DSN'); $configurator->configure($this->Mail, 'localhost'); }