Add an invalid MySQLi charset test

parent efc58a9f
...@@ -47,6 +47,19 @@ class ConnectionTest extends FunctionalTestCase ...@@ -47,6 +47,19 @@ class ConnectionTest extends FunctionalTestCase
$this->getConnection([12345 => 'world']); $this->getConnection([12345 => 'world']);
} }
public function testInvalidCharset(): void
{
$params = TestUtil::getConnectionParams();
$this->expectException(MysqliException::class);
(new Driver())->connect(
array_merge(
$params,
['charset' => 'invalid']
)
);
}
public function testPing(): void public function testPing(): void
{ {
$conn = $this->getConnection([]); $conn = $this->getConnection([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment