Code Duplication    Length = 13-15 lines in 2 locations

tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php 1 location

@@ 176-188 (lines=13) @@
173
        $schema = new Schema([], [$sequence, $sequence]);
174
    }
175
176
    public function testConfigMaxIdentifierLength() : void
177
    {
178
        $schemaConfig = new SchemaConfig();
179
        $schemaConfig->setMaxIdentifierLength(5);
180
181
        $schema = new Schema([], [], $schemaConfig);
182
        $table  = $schema->createTable('smalltable');
183
        $table->addColumn('long_id', 'integer');
184
        $table->addIndex(['long_id']);
185
186
        $index = current($table->getIndexes());
187
        self::assertEquals(5, strlen($index->getName()));
188
    }
189
190
    public function testDeepClone() : void
191
    {

tests/Doctrine/Tests/DBAL/Schema/Visitor/RemoveNamespacedAssetsTest.php 1 location

@@ 17-31 (lines=15) @@
14
    /**
15
     * @group DBAL-204
16
     */
17
    public function testRemoveNamespacedAssets() : void
18
    {
19
        $config = new SchemaConfig();
20
        $config->setName('test');
21
        $schema = new Schema([], [], $config);
22
23
        $schema->createTable('test.test');
24
        $schema->createTable('foo.bar');
25
        $schema->createTable('baz');
26
27
        $schema->visit(new RemoveNamespacedAssets());
28
29
        $tables = $schema->getTables();
30
        self::assertEquals(['test.test', 'test.baz'], array_keys($tables), "Only 2 tables should be present, both in 'test' namespace.");
31
    }
32
33
    /**
34
     * @group DBAL-204