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

ExplainStatementTest::testBuilderView()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
1
<?php
2
3
namespace PhpMyAdmin\SqlParser\Tests\Builder;
4
5
use PhpMyAdmin\SqlParser\Parser;
6
use PhpMyAdmin\SqlParser\Tests\TestCase;
7
8
class ExplainStatementTest extends TestCase
9
{
10
    public function testBuilderView()
11
    {
12
        $query = 'EXPLAIN SELECT * FROM test;';
13
14
        $parser = new Parser($query);
15
        $stmt = $parser->statements[0];
16
17
        $this->assertEquals(
18
            ' EXPLAIN SELECT * FROM test',
19
            $stmt->build()
20
        );
21
    }
22
}
23