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

ExplainStatementTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBuilderView() 0 10 1
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