Code Duplication    Length = 5-5 lines in 5 locations

tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php 5 locations

@@ 722-726 (lines=5) @@
719
     */
720
    public function testGetColumnComment()
721
    {
722
        if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() &&
723
             ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() &&
724
            $this->_conn->getDatabasePlatform()->getName() != 'mssql') {
725
            $this->markTestSkipped('Database does not support column comments.');
726
        }
727
728
        $table = new Table('column_comment_test');
729
        $table->addColumn('id', 'integer', array('comment' => 'This is a comment'));
@@ 762-766 (lines=5) @@
759
     */
760
    public function testAutomaticallyAppendCommentOnMarkedColumns()
761
    {
762
        if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() &&
763
             ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() &&
764
            $this->_conn->getDatabasePlatform()->getName() != 'mssql') {
765
            $this->markTestSkipped('Database does not support column comments.');
766
        }
767
768
        $table = new Table('column_comment_test2');
769
        $table->addColumn('id', 'integer', array('comment' => 'This is a comment'));
@@ 790-794 (lines=5) @@
787
     */
788
    public function testCommentHintOnDateIntervalTypeColumn()
789
    {
790
        if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() &&
791
            ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() &&
792
            $this->_conn->getDatabasePlatform()->getName() != 'mssql') {
793
            $this->markTestSkipped('Database does not support column comments.');
794
        }
795
796
        $table = new Table('column_dateinterval_comment');
797
        $table->addColumn('id', 'integer', array('comment' => 'This is a comment'));
@@ 1063-1067 (lines=5) @@
1060
1061
    public function testCommentStringsAreQuoted()
1062
    {
1063
        if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() &&
1064
            ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() &&
1065
            $this->_conn->getDatabasePlatform()->getName() != 'mssql') {
1066
            $this->markTestSkipped('Database does not support column comments.');
1067
        }
1068
1069
        $table = new Table('my_table');
1070
        $table->addColumn('id', 'integer', array('comment' => "It's a comment with a quote"));
@@ 1108-1112 (lines=5) @@
1105
     */
1106
    public function testAlterColumnComment($comment1, $expectedComment1, $comment2, $expectedComment2)
1107
    {
1108
        if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() &&
1109
            ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() &&
1110
            $this->_conn->getDatabasePlatform()->getName() != 'mssql') {
1111
            $this->markTestSkipped('Database does not support column comments.');
1112
        }
1113
1114
        $offlineTable = new Table('alter_column_comment_test');
1115
        $offlineTable->addColumn('comment1', 'integer', array('comment' => $comment1));