diff options
Diffstat (limited to 'tests/Components/IntoKeywordTest.php')
-rw-r--r-- | tests/Components/IntoKeywordTest.php | 12 |
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;')); |