Passed
Branch master (366c16)
by William
03:30
created

ComponentTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 18
rs 10
wmc 2

2 Methods

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