We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af85abd commit 7252acaCopy full SHA for 7252aca
tests/Components/ConditionTest.php
@@ -26,4 +26,16 @@ public function testParseBetween(): void
26
$this->assertEquals($component[1]->expr, 'OR');
27
$this->assertEquals($component[2]->expr, '(id BETWEEN 30 AND 40)');
28
}
29
+
30
+ public function testParseAnd(): void
31
+ {
32
+ $component = Condition::parse(
33
+ new Parser(),
34
+ $this->getTokensList("`col` LIKE 'AND'")
35
+ );
36
+ $this->assertEquals(
37
+ "`col` LIKE 'AND'",
38
+ Condition::build($component)
39
40
+ }
41
0 commit comments