Code Duplication    Length = 9-9 lines in 2 locations

Tests/ConnectionFactoryTest.php 2 locations

@@ 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
    public function testDefaultCharsetMySql()
64
    {
@@ 63-71 (lines=9) @@
60
        $this->assertSame('utf8', $connection->getParams()['charset']);
61
    }
62
63
    public function testDefaultCharsetMySql()
64
    {
65
        $factory = new ConnectionFactory([]);
66
        $params  = ['driver' => 'pdo_mysql'];
67
68
        $connection = $factory->createConnection($params);
69
70
        $this->assertSame('utf8mb4', $connection->getParams()['charset']);
71
    }
72
}
73
74
/**