Completed
Pull Request — master (#3666)
by
unknown
62:16
created

Oracle122PlatformTest::testMaxIdentifierLength()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 1
c 2
b 1
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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