Code Duplication    Length = 7-7 lines in 3 locations

vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/MysqlAdapterTest.php 1 location

@@ 48-54 (lines=7) @@
45
        $this->assertTrue($this->adapter->getConnection() instanceof \PDO);
46
    }
47
48
    public function testConnectionWithoutPort()
49
    {
50
        $options = $this->adapter->getOptions();
51
        unset($options['port']);
52
        $this->adapter->setOptions($options);
53
        $this->assertTrue($this->adapter->getConnection() instanceof \PDO);
54
    }
55
56
    public function testConnectionWithInvalidCredentials()
57
    {

vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SqlServerAdapterTest.php 1 location

@@ 48-54 (lines=7) @@
45
        $this->assertTrue($this->adapter->getConnection() instanceof \PDO);
46
    }
47
48
    public function testConnectionWithoutPort()
49
    {
50
        $options = $this->adapter->getOptions();
51
        unset($options['port']);
52
        $this->adapter->setOptions($options);
53
        $this->assertTrue($this->adapter->getConnection() instanceof \PDO);
54
    }
55
56
    public function testConnectionWithInvalidCredentials()
57
    {

vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/PostgresAdapterTest.php 1 location

@@ 71-77 (lines=7) @@
68
        $this->assertTrue($this->adapter->getConnection() instanceof \PDO);
69
    }
70
71
    public function testConnectionWithoutPort()
72
    {
73
        $options = $this->adapter->getOptions();
74
        unset($options['port']);
75
        $this->adapter->setOptions($options);
76
        $this->assertTrue($this->adapter->getConnection() instanceof \PDO);
77
    }
78
79
    public function testConnectionWithInvalidCredentials()
80
    {