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

OrderKeywordTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

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