Code Duplication    Length = 15-15 lines in 2 locations

tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL510Test.php 1 location

@@ 22-36 (lines=15) @@
19
        }
20
    }
21
22
    public function testSearchPathSchemaChanges()
23
    {
24
        $table = new Table("dbal510tbl");
25
        $table->addColumn('id', 'integer');
26
        $table->setPrimaryKey(array('id'));
27
28
        $this->_conn->getSchemaManager()->createTable($table);
29
30
        $onlineTable = $this->_conn->getSchemaManager()->listTableDetails('dbal510tbl');
31
32
        $comparator = new Comparator();
33
        $diff = $comparator->diffTable($onlineTable, $table);
34
35
        $this->assertFalse($diff);
36
    }
37
}
38

tests/Doctrine/Tests/DBAL/Functional/Schema/PostgreSqlSchemaManagerTest.php 1 location

@@ 270-284 (lines=15) @@
267
    /**
268
     * @group DDC-2843
269
     */
270
    public function testBooleanDefault()
271
    {
272
        $table = new \Doctrine\DBAL\Schema\Table('ddc2843_bools');
273
        $table->addColumn('id', 'integer');
274
        $table->addColumn('checked', 'boolean', array('default' => false));
275
276
        $this->_sm->createTable($table);
277
278
        $databaseTable = $this->_sm->listTableDetails($table->getName());
279
280
        $c = new \Doctrine\DBAL\Schema\Comparator();
281
        $diff = $c->diffTable($table, $databaseTable);
282
283
        $this->assertFalse($diff);
284
    }
285
286
    public function testListTableWithBinary()
287
    {