Skip to content

Commit 0a699b1

Browse files
committed
Add tests for (partially) parsed queries
Signed-off-by: Michal Čihař <[email protected]>
1 parent 498f1b1 commit 0a699b1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/Components/CreateDefinitionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function testParseErr1()
2727
$parser,
2828
$this->getTokensList('(str TEXT, FULLTEXT INDEX indx (str)')
2929
);
30+
$this->assertEquals(2, count($component));
3031

3132
$this->assertEquals(
3233
'A closing bracket was expected.',

tests/Components/ExpressionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public function testParse()
1717
public function testParse2()
1818
{
1919
$component = Expression::parse(new Parser(), $this->getTokensList('col`test`'));
20+
$this->assertEquals($component->expr, 'col');
2021
}
2122

2223
/**

0 commit comments

Comments
 (0)