diff --git a/src/DSNConfigurator.php b/src/DSNConfigurator.php index 4858a81a..8706f088 100644 --- a/src/DSNConfigurator.php +++ b/src/DSNConfigurator.php @@ -81,7 +81,7 @@ class DSNConfigurator if (false === $config || !isset($config['scheme']) || !isset($config['host'])) { throw new Exception( - sprintf('Mailformed DSN: "%s".', $dsn) + sprintf('Malformed DSN: "%s".', $dsn) ); } diff --git a/test/PHPMailer/DSNConfiguratorTest.php b/test/PHPMailer/DSNConfiguratorTest.php index fdde6a1e..dcb1e72c 100644 --- a/test/PHPMailer/DSNConfiguratorTest.php +++ b/test/PHPMailer/DSNConfiguratorTest.php @@ -34,7 +34,7 @@ final class DSNConfiguratorTest extends TestCase $configurator = new DSNConfigurator(); $this->expectException(Exception::class); - $this->expectExceptionMessage('Mailformed DSN: "localhost".'); + $this->expectExceptionMessage('Malformed DSN: "localhost".'); $configurator->configure($this->Mail, 'localhost'); }