summaryrefslogtreecommitdiffstats
path: root/tests/Components/IntoKeywordTest.php
diff options
context:
space:
mode:
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;'));