Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 220-231 (lines=12) @@
217
        self::assertSame($expectedResult, $this->_platform->appendLockHint($fromClause, $lockMode));
218
    }
219
220
    public function getLockHints()
221
    {
222
        return array(
223
            array(null, ''),
224
            array(false, ''),
225
            array(true, ''),
226
            array(LockMode::NONE, ' WITH (NOLOCK)'),
227
            array(LockMode::OPTIMISTIC, ''),
228
            array(LockMode::PESSIMISTIC_READ, ' WITH (UPDLOCK)'),
229
            array(LockMode::PESSIMISTIC_WRITE, ' WITH (XLOCK)'),
230
        );
231
    }
232
233
    public function testHasCorrectMaxIdentifierLength()
234
    {

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

@@ 37-48 (lines=12) @@
34
        self::assertSame($expectedResult, $this->_platform->modifyLimitQuery($query, $limit, $offset));
35
    }
36
37
    public function getLockHints()
38
    {
39
        return array(
40
            array(null, ''),
41
            array(false, ''),
42
            array(true, ''),
43
            array(LockMode::NONE, ' WITH (NOLOCK)'),
44
            array(LockMode::OPTIMISTIC, ''),
45
            array(LockMode::PESSIMISTIC_READ, ' WITH (HOLDLOCK, ROWLOCK)'),
46
            array(LockMode::PESSIMISTIC_WRITE, ' WITH (UPDLOCK, ROWLOCK)'),
47
        );
48
    }
49
50
    public function getModifyLimitQueries()
51
    {