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

GroupKeywordTest::testBuild()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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