summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Utils/CLITest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/Utils/CLITest.php b/tests/Utils/CLITest.php
index 3087f29..b89cc65 100644
--- a/tests/Utils/CLITest.php
+++ b/tests/Utils/CLITest.php
@@ -32,6 +32,11 @@ class CLITest extends TestCase
0,
),
array(
+ array('query' => 'SELECT 1'),
+ "\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n",
+ 0,
+ ),
+ array(
array('q' => 'SELECT 1', 'f' => 'html'),
'<span class="sql-reserved">SELECT</span>' . "\n" .
' <span class="sql-number">1</span>' . "\n",
@@ -75,6 +80,11 @@ class CLITest extends TestCase
0,
),
array(
+ array('query' => 'SELECT 1'),
+ '',
+ 0,
+ ),
+ array(
array('q' => 'SELECT SELECT'),
'#1: An expression was expected. (near "SELECT" at position 7)' . "\n" .
'#2: This type of clause was previously parsed. (near "SELECT" at position 7)' . "\n" .