Passed
Pull Request — master (#311)
by William
12:43
created

GroupKeywordTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
eloc 8
c 3
b 1
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBuild() 0 11 1
1
<?php
2
3
namespace PhpMyAdmin\SqlParser\Tests\Components;
4
5
use PhpMyAdmin\SqlParser\Components\Expression;
6
use PhpMyAdmin\SqlParser\Components\GroupKeyword;
7
use PhpMyAdmin\SqlParser\Tests\TestCase;
8
9
class GroupKeywordTest extends TestCase
10
{
11
    public function testBuild()
12
    {
13
        $this->assertEquals(
14
            GroupKeyword::build(
15
                array(
16
                    new GroupKeyword(new Expression('a')),
17
                    new GroupKeyword(new Expression('b')),
18
                    new GroupKeyword(new Expression('c')),
19
                )
20
            ),
21
            'a, b, c'
22
        );
23
    }
24
}
25