Code Duplication    Length = 3-3 lines in 2 locations

tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php 2 locations

@@ 263-265 (lines=3) @@
260
     */
261
    public function testConnectWithoutExplicitDatabaseName()
262
    {
263
        if (in_array($this->_conn->getDatabasePlatform()->getName(), array('oracle', 'db2'), true)) {
264
            $this->markTestSkipped('Platform does not support connecting without database name.');
265
        }
266
267
        $params = $this->_conn->getParams();
268
        unset($params['dbname']);
@@ 286-288 (lines=3) @@
283
     */
284
    public function testDeterminesDatabasePlatformWhenConnectingToNonExistentDatabase()
285
    {
286
        if (in_array($this->_conn->getDatabasePlatform()->getName(), ['oracle', 'db2'], true)) {
287
            $this->markTestSkipped('Platform does not support connecting without database name.');
288
        }
289
290
        $params = $this->_conn->getParams();
291
        $params['dbname'] = 'foo_bar';