Completed
Pull Request — master (#3666)
by
unknown
61:37
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 5
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
8
class Oracle122PlatformTest extends OraclePlatformTest
9
{
10
    public function createPlatform() : AbstractPlatform
11
    {
12
        return new Oracle122Platform();
13
    }
14
15
    public function testMaxIdentifierLength() : void
16
    {
17
        self::assertSame(128, $this->platform->getMaxIdentifierLength());
18
    }
19
20
    public function testFixSchemaElementName() : void
21
    {
22
        $tableName = 'ThisIsAStringTestLongerThan32Chars';
23
        self::assertSame($tableName, $this->platform->fixSchemaElementName($tableName));
24
    }
25
}
26