Completed
Push — master ( dfc31b...3ca65e )
by Luís
17s
created

GH6682Test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 19
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIssue() 0 14 1
1
<?php
2
3
namespace Doctrine\Test\ORM\Functional\Ticket;
4
5
use Doctrine\ORM\Mapping\ClassMetadataInfo;
6
use Doctrine\Tests\OrmFunctionalTestCase;
7
8
final class GH6682Test extends OrmFunctionalTestCase
9
{
10
    /**
11
     * @group 6682
12
     */
13
    public function testIssue() : void
14
    {
15
        $parsedDefinition = [
16
            'sequenceName'   => 'test_sequence',
17
            'allocationSize' => '',
18
            'initialValue'   => '',
19
        ];
20
21
        $classMetadataInfo = new ClassMetadataInfo('test_entity');
22
        $classMetadataInfo->setSequenceGeneratorDefinition($parsedDefinition);
23
24
        self::assertSame(
25
            ['sequenceName' => 'test_sequence', 'allocationSize' => '1', 'initialValue' => '1'],
26
            $classMetadataInfo->sequenceGeneratorDefinition
27
        );
28
    }
29
}
30