Code Duplication    Length = 6-6 lines in 2 locations

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

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

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