summaryrefslogtreecommitdiffstats
path: root/tests/Fragments/WhereKeywordTest.php
blob: e125cf0465beb74e5b2a3bc669c593bb900fa4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

namespace SqlParser\Tests\Fragments;

use SqlParser\Parser;
use SqlParser\Fragments\WhereKeyword;

use SqlParser\Tests\TestCase;

class WhereKeywordTest extends TestCase
{

    public function testParse()
    {
        $fragment = WhereKeyword::parse(new Parser(), $this->getTokensList('/* id = */ id = 10'));
        $this->assertEquals($fragment[0]->expr, 'id = 10');
    }
}