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

ComponentTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testParse() 0 3 1
A testBuild() 0 3 1
1
<?php
2
3
namespace PhpMyAdmin\SqlParser\Tests\Components;
4
5
use PhpMyAdmin\SqlParser\Component;
6
use PhpMyAdmin\SqlParser\Parser;
7
use PhpMyAdmin\SqlParser\Tests\TestCase;
8
use PhpMyAdmin\SqlParser\TokensList;
9
10
class ComponentTest extends TestCase
11
{
12
    /**
13
     * @expectedException \Exception
14
     * @expectedExceptionMessage Not implemented yet.
15
     * @runInSeparateProcess
16
     * @preserveGlobalState disabled
17
     */
18
    public function testParse()
19
    {
20
        Component::parse(new Parser(), new TokensList());
21
    }
22
23
    /**
24
     * @expectedException \Exception
25
     * @expectedExceptionMessage Not implemented yet.
26
     */
27
    public function testBuild()
28
    {
29
        Component::build(null);
30
    }
31
}
32