Failed Conditions
Pull Request — master (#3666)
by
unknown
04:25
created

Oracle122PlatformTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 3
eloc 4
c 2
b 1
f 1
dl 0
loc 16
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createPlatform() 0 3 1
A testMaxIdentifierLength() 0 3 1
A testFixSchemaElementName() 0 4 1
1
<?php
2
3
namespace Doctrine\Tests\DBAL\Platforms;
4
5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6
use Doctrine\DBAL\Platforms\Oracle122Platform;
7
use function uniqid;
8
9
class Oracle122PlatformTest extends OraclePlatformTest
10
{
11
    public function createPlatform() : AbstractPlatform
12
    {
13
        return new Oracle122Platform();
14
    }
15
16
    public function testMaxIdentifierLength() : void
17
    {
18
        self::assertSame(128, $this->platform->getMaxIdentifierLength());
19
    }
20
21
    public function testFixSchemaElementName() : void
22
    {
23
        $tableName = uniqid() . uniqid() . uniqid();
24
        self::assertSame($tableName, $this->platform->fixSchemaElementName($tableName));
25
    }
26
}
27