Code Duplication    Length = 12-12 lines in 2 locations

tests/Doctrine/Tests/DBAL/Functional/BlobTest.php 2 locations

@@ 77-88 (lines=12) @@
74
        $this->assertBinaryContains('test2');
75
    }
76
77
    private function assertBinaryContains($text)
78
    {
79
        $rows = $this->_conn->fetchAll('SELECT * FROM blob_table');
80
81
        self::assertEquals(1, count($rows));
82
        $row = array_change_key_case($rows[0], CASE_LOWER);
83
84
        $blobValue = Type::getType('binary')->convertToPHPValue($row['binaryfield'], $this->_conn->getDatabasePlatform());
85
86
        self::assertInternalType('resource', $blobValue);
87
        self::assertEquals($text, stream_get_contents($blobValue));
88
    }
89
90
    private function assertBlobContains($text)
91
    {
@@ 90-101 (lines=12) @@
87
        self::assertEquals($text, stream_get_contents($blobValue));
88
    }
89
90
    private function assertBlobContains($text)
91
    {
92
        $rows = $this->_conn->fetchAll('SELECT * FROM blob_table');
93
94
        self::assertEquals(1, count($rows));
95
        $row = array_change_key_case($rows[0], CASE_LOWER);
96
97
        $blobValue = Type::getType('blob')->convertToPHPValue($row['blobfield'], $this->_conn->getDatabasePlatform());
98
99
        self::assertInternalType('resource', $blobValue);
100
        self::assertEquals($text, stream_get_contents($blobValue));
101
    }
102
}
103