Code Duplication    Length = 6-6 lines in 2 locations

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
            self::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
        self::assertFalse($foundTable, 'View "list_tables_excludes_views_test_view" must not be found in table list');
347
    }

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

@@ 913-918 (lines=6) @@
910
    protected function assertHasTable($tables, $tableName)
911
    {
912
        $foundTable = false;
913
        foreach ($tables as $table) {
914
            self::assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.');
915
            if (strtolower($table->getName()) == 'list_tables_test_new_name') {
916
                $foundTable = true;
917
            }
918
        }
919
        self::assertTrue($foundTable, "Could not find new table");
920
    }
921