Code Duplication    Length = 13-13 lines in 2 locations

tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php 2 locations

@@ 96-108 (lines=13) @@
93
        self::assertEquals($expected, Comparator::compareSchemas($schema1, $schema2));
94
    }
95
96
    public function testCompareMissingTable()
97
    {
98
        $schemaConfig = new \Doctrine\DBAL\Schema\SchemaConfig;
99
        $table        = new Table('bugdb', array ('integerfield1' => new Column('integerfield1', Type::getType('integer'))));
100
        $table->setSchemaConfig($schemaConfig);
101
102
        $schema1 = new Schema(array($table), array(), $schemaConfig);
103
        $schema2 = new Schema(array(), array(), $schemaConfig);
104
105
        $expected = new SchemaDiff(array(), array(), array('bugdb' => $table), $schema1);
106
107
        self::assertEquals($expected, Comparator::compareSchemas($schema1, $schema2));
108
    }
109
110
    public function testCompareNewTable()
111
    {
@@ 110-122 (lines=13) @@
107
        self::assertEquals($expected, Comparator::compareSchemas($schema1, $schema2));
108
    }
109
110
    public function testCompareNewTable()
111
    {
112
        $schemaConfig = new \Doctrine\DBAL\Schema\SchemaConfig;
113
        $table        = new Table('bugdb', array ('integerfield1' => new Column('integerfield1', Type::getType('integer'))));
114
        $table->setSchemaConfig($schemaConfig);
115
116
        $schema1 = new Schema(array(), array(), $schemaConfig);
117
        $schema2 = new Schema(array($table), array(), $schemaConfig);
118
119
        $expected = new SchemaDiff(array('bugdb' => $table), array(), array(), $schema1);
120
121
        self::assertEquals($expected, Comparator::compareSchemas($schema1, $schema2));
122
    }
123
124
    public function testCompareOnlyAutoincrementChanged()
125
    {