Passed
Pull Request — master (#2893)
by Šimon
14:29 queued 16s
created

PostgreSQL100PlatformTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 13
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createPlatform() 0 3 1
A testGetSequenceMetadataSQL() 0 3 1
1
<?php
2
3
namespace Doctrine\Tests\DBAL\Platforms;
4
5
use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
6
7
class PostgreSQL100PlatformTest extends PostgreSQL94PlatformTest
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function createPlatform() : PostgreSQL100Platform
13
    {
14
        return new PostgreSQL100Platform();
15
    }
16
17
    public function testGetSequenceMetadataSQL() : void
18
    {
19
        $this->assertSame("SELECT min_value, increment_by FROM pg_sequences WHERE schemaname = 'aSchemaName' AND sequencename = 'aSequenceName'", $this->_platform->getSequenceMetadataSQL('aSequenceName', 'aSchemaName'));
20
    }
21
}
22