Passed
Branch master (366c16)
by William
03:30
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
declare(strict_types=1);
4
5
namespace PhpMyAdmin\SqlParser\Tests\Builder;
6
7
use PhpMyAdmin\SqlParser\Parser;
8
use PhpMyAdmin\SqlParser\Tests\TestCase;
9
10
class ExplainStatementTest extends TestCase
11
{
12
    public function testBuilderView()
13
    {
14
        $query = 'EXPLAIN SELECT * FROM test;';
15
16
        $parser = new Parser($query);
17
        $stmt = $parser->statements[0];
18
19
        $this->assertEquals(
20
            ' EXPLAIN SELECT * FROM test',
21
            $stmt->build()
22
        );
23
    }
24
}
25