diff options
author | Michal Čihař <michal@cihar.com> | 2016-09-13 14:21:04 +0200 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-09-13 14:21:04 +0200 |
commit | 252c2c1ab67786022090114d76657a25cdd8b49b (patch) | |
tree | c4148877d175617bf5a917fb12d0d0575bbfe87e | |
parent | a1e6fe1bc31f1e628c0dc62effcab554987b7933 (diff) | |
download | sql-parser-252c2c1ab67786022090114d76657a25cdd8b49b.zip sql-parser-252c2c1ab67786022090114d76657a25cdd8b49b.tar.gz sql-parser-252c2c1ab67786022090114d76657a25cdd8b49b.tar.bz2 |
Test escaping without quotes
Signed-off-by: Michal Čihař <michal@cihar.com>
-rw-r--r-- | tests/Lexer/ContextTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Lexer/ContextTest.php b/tests/Lexer/ContextTest.php index 7992599..6f4e661 100644 --- a/tests/Lexer/ContextTest.php +++ b/tests/Lexer/ContextTest.php @@ -55,6 +55,9 @@ class ContextTest extends TestCase public function testEscape() { + Context::setMode('NO_ENCLOSING_QUOTES'); + $this->assertEquals('test', Context::escape('test')); + Context::setMode('ANSI_QUOTES'); $this->assertEquals('"test"', Context::escape('test')); |