summaryrefslogtreecommitdiffstats
path: root/tests/Components/ComponentTest.php
blob: 104428904f55ae94d191de38cdb5e61163d6a20f (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
31
<?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;
use Throwable;

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

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