Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 885-890 (lines=6) @@
882
    protected function assertHasTable($tables, $tableName)
883
    {
884
        $foundTable = false;
885
        foreach ($tables as $table) {
886
            $this->assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.');
887
            if (strtolower($table->getName()) == 'list_tables_test_new_name') {
888
                $foundTable = true;
889
            }
890
        }
891
        $this->assertTrue($foundTable, "Could not find new table");
892
    }
893

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

@@ 339-344 (lines=6) @@
336
        $tables = $this->_sm->listTables();
337
338
        $foundTable = false;
339
        foreach ($tables as $table) {
340
            $this->assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.');
341
            if (strtolower($table->getName()) == 'list_tables_excludes_views_test_view') {
342
                $foundTable = true;
343
            }
344
        }
345
346
        $this->assertFalse($foundTable, 'View "list_tables_excludes_views_test_view" must not be found in table list');
347
    }