Failed Conditions
Pull Request — master (#2893)
by Šimon
38:04
created

PostgreSQL100PlatformTest::createPlatform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\DBAL\Platforms;
6
7
use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
8
9
class PostgreSQL100PlatformTest extends PostgreSQL94PlatformTest
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function createPlatform() : PostgreSQL100Platform
15
    {
16
        return new PostgreSQL100Platform();
17
    }
18
19
    public function testGetListSequencesSQL() : void
20
    {
21
        $this->assertSame(
22
            "SELECT sequence_name AS relname,
23
                       sequence_schema AS schemaname,
24
                       minimum_value AS min_value, 
25
                       increment AS increment_by
26
                FROM   information_schema.sequences
27
                WHERE  sequence_catalog = 'test_db'
28
                AND    sequence_schema NOT LIKE 'pg\_%'
29
                AND    sequence_schema != 'information_schema'",
30
            $this->_platform->getListSequencesSQL('test_db')
31
        );
32
    }
33
}
34