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

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