summaryrefslogtreecommitdiffstats
path: root/tests/Components/ComponentTest.php
blob: ce7c68f0a974aa134238e800397bf0d257687ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);

namespace PhpMyAdmin\SqlParser\Tests\Components;

use PhpMyAdmin\SqlParser\Component;
use PhpMyAdmin\SqlParser\Parser;
use PhpMyAdmin\SqlParser\Tests\TestCase;
use PhpMyAdmin\SqlParser\TokensList;

class ComponentTest extends TestCase
{
    /**
     * @runInSeparateProcess
     * @preserveGlobalState disabled
     */
    public function testParse()
    {
        $this->expectExceptionMessage('Not implemented yet.');
        $this->expectException(\Exception::class);
        Component::parse(new Parser(), new TokensList());
    }

    public function testBuild()
    {
        $this->expectExceptionMessage('Not implemented yet.');
        $this->expectException(\Exception::class);
        Component::build(null);
    }
}