Code Duplication    Length = 10-10 lines in 4 locations

tests/Doctrine/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php 1 location

@@ 911-920 (lines=10) @@
908
        self::assertNotContains('DATABASE()', $sql);
909
    }
910
911
    public function testGetDefaultValueDeclarationSQLEscaped()
912
    {
913
        // string must be escaped
914
        $field = array(
915
            'type' => 'string',
916
            'default' => 'Foo\\Bar'
917
        );
918
919
        self::assertEquals(" DEFAULT 'Foo\\\\Bar'", $this->_platform->getDefaultValueDeclarationSQL($field));
920
    }
921
}
922

tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php 1 location

@@ 525-534 (lines=10) @@
522
        $this->markTestSkipped('Platform does not support Column comments.');
523
    }
524
525
    public function testGetDefaultValueDeclarationSQL()
526
    {
527
        // non-timestamp value will get single quotes
528
        $field = array(
529
            'type' => 'string',
530
            'default' => 'non_timestamp'
531
        );
532
533
        self::assertEquals(" DEFAULT 'non_timestamp'", $this->_platform->getDefaultValueDeclarationSQL($field));
534
    }
535
536
    public function testGetDefaultValueDeclarationSQLDateTime()
537
    {

tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php 1 location

@@ 923-932 (lines=10) @@
920
        );
921
    }
922
923
    public function testGetDefaultValueDeclarationSQLEscaped()
924
    {
925
        // string must be escaped
926
        $field = array(
927
            'type' => 'string',
928
            'default' => 'Foo\\Bar'
929
        );
930
931
        self::assertEquals(" DEFAULT 'Foo\\\\Bar'", $this->_platform->getDefaultValueDeclarationSQL($field));
932
    }
933
}
934

tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php 1 location

@@ 878-887 (lines=10) @@
875
        self::assertContains("'Foo''Bar\\\\'", $this->_platform->getListTableColumnsSQL('foo_table', "Foo'Bar\\"), '', true);
876
    }
877
878
    public function testGetDefaultValueDeclarationSQLEscaped()
879
    {
880
        // string must be escaped
881
        $field = array(
882
            'type' => 'string',
883
            'default' => 'Foo\\Bar'
884
        );
885
886
        self::assertEquals(" DEFAULT 'Foo\\\\Bar'", $this->_platform->getDefaultValueDeclarationSQL($field));
887
    }
888
}
889