Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 526-535 (lines=10) @@
523
        return 0;
524
    }
525
526
    public function testReturnsBinaryTypeDeclarationSQL()
527
    {
528
        self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array()));
529
        self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 0)));
530
        self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 9999999)));
531
532
        self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true)));
533
        self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 0)));
534
        self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 9999999)));
535
    }
536
537
    public function testDoesNotPropagateUnnecessaryTableAlterationOnBinaryType()
538
    {

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

@@ 480-489 (lines=10) @@
477
        return 0;
478
    }
479
480
    public function testReturnsBinaryTypeDeclarationSQL()
481
    {
482
        self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array()));
483
        self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 0)));
484
        self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 9999999)));
485
486
        self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true)));
487
        self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 0)));
488
        self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 9999999)));
489
    }
490
491
    /**
492
     * @group DBAL-234