@@ 53-61 (lines=9) @@ | ||
50 | } |
|
51 | } |
|
52 | ||
53 | public function testDefaultCharset() |
|
54 | { |
|
55 | $factory = new ConnectionFactory([]); |
|
56 | $params = ['driverClass' => FakeDriver::class]; |
|
57 | ||
58 | $connection = $factory->createConnection($params); |
|
59 | ||
60 | $this->assertSame('utf8', $connection->getParams()['charset']); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * @requires extension pdo |
|
@@ 66-74 (lines=9) @@ | ||
63 | /** |
|
64 | * @requires extension pdo |
|
65 | */ |
|
66 | public function testDefaultCharsetMySql() |
|
67 | { |
|
68 | $factory = new ConnectionFactory([]); |
|
69 | $params = ['driver' => 'pdo_mysql']; |
|
70 | ||
71 | $connection = $factory->createConnection($params); |
|
72 | ||
73 | $this->assertSame('utf8mb4', $connection->getParams()['charset']); |
|
74 | } |
|
75 | } |
|
76 | ||
77 | /** |