summaryrefslogtreecommitdiffstats
path: root/tests/Components/IntoKeywordTest.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-08-14 00:16:12 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-08-14 00:19:48 +0300
commit09a7047bf51de1d733dd95674f083c1e11c656e1 (patch)
tree6a9dbc92d7d4390ecae7cf0776dd6cb20fecef06 /tests/Components/IntoKeywordTest.php
parenta36dbf270118af42e09b223957ed0d96f6ac0ed9 (diff)
downloadsql-parser-09a7047bf51de1d733dd95674f083c1e11c656e1.zip
sql-parser-09a7047bf51de1d733dd95674f083c1e11c656e1.tar.gz
sql-parser-09a7047bf51de1d733dd95674f083c1e11c656e1.tar.bz2
Finished builders for components.
Diffstat (limited to 'tests/Components/IntoKeywordTest.php')
-rw-r--r--tests/Components/IntoKeywordTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Components/IntoKeywordTest.php b/tests/Components/IntoKeywordTest.php
index ee30f09..dad7077 100644
--- a/tests/Components/IntoKeywordTest.php
+++ b/tests/Components/IntoKeywordTest.php
@@ -17,6 +17,18 @@ class IntoKeywordTest extends TestCase
$this->assertEquals($component->dest, '/tmp/outfile.txt');
}
+ public function testBuild()
+ {
+ $component = IntoKeyword::parse(new Parser(), $this->getTokensList('tbl(col1, col2)'));
+ $this->assertEquals('tbl(col1, col2)', IntoKeyword::build($component));
+ }
+
+ public function testBuildOutfile()
+ {
+ $component = IntoKeyword::parse(new Parser(), $this->getTokensList('OUTFILE "/tmp/outfile.txt"'));
+ $this->assertEquals('OUTFILE "/tmp/outfile.txt"', IntoKeyword::build($component));
+ }
+
public function testParseErr1()
{
$component = IntoKeyword::parse(new Parser(), $this->getTokensList('OUTFILE;'));