summaryrefslogtreecommitdiffstats
path: root/tests/Utils/FormatterTest.php
diff options
context:
space:
mode:
authorDamian Dlugosz <bigfootdd@gmail.com>2017-02-16 22:06:02 +0100
committerDamian Dlugosz <bigfootdd@gmail.com>2017-02-16 22:17:24 +0100
commitea60c287ff95a699359feca1ffc9abfb72370d26 (patch)
treebe9fde6d1a2e87aa4181d07d0e96bfc5ff986034 /tests/Utils/FormatterTest.php
parenta79e330e11fb893183f7f29ec2bff0fa99fb58b4 (diff)
downloadsql-parser-ea60c287ff95a699359feca1ffc9abfb72370d26.zip
sql-parser-ea60c287ff95a699359feca1ffc9abfb72370d26.tar.gz
sql-parser-ea60c287ff95a699359feca1ffc9abfb72370d26.tar.bz2
Inline JOINs
Diffstat (limited to 'tests/Utils/FormatterTest.php')
-rw-r--r--tests/Utils/FormatterTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Utils/FormatterTest.php b/tests/Utils/FormatterTest.php
index b8a8ff2..c209d27 100644
--- a/tests/Utils/FormatterTest.php
+++ b/tests/Utils/FormatterTest.php
@@ -508,6 +508,13 @@ class FormatTest extends TestCase
'&nbsp;&nbsp;&nbsp;&nbsp;<span class="sql-variable">`query`</span> <span class="sql-keyword">TEXT</span> <span class="sql-reserved">NOT NULL</span>,' . '<br/>' .
'&nbsp;&nbsp;&nbsp;&nbsp;<span class="sql-reserved">PRIMARY KEY</span>(<span class="sql-variable">`id`</span>)',
),
+ 'join' => array(
+ 'query' => 'join tbl2 on c1=c2',
+ 'text' => 'JOIN tbl2 ON c1 = c2',
+ 'cli' => "\x1b[35mJOIN \x1b[39mtbl2 \x1b[35mON \x1b[39mc1 \x1b[39m= \x1b[39mc2" .
+ "\x1b[0m",
+ 'html' => '<span class="sql-reserved">JOIN</span> tbl2 <span class="sql-reserved">ON</span> c1 = c2',
+ ),
);
}
}