diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-07-10 01:45:45 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-07-10 03:47:19 +0300 |
commit | 527842708bf44fe2bb4d17a97203cec01b860960 (patch) | |
tree | 9eb52c23199199b721b5412e1c16d9129d624e52 /tests/Components/IntoKeywordTest.php | |
parent | 7c925b68763e86be121664575632c9261d380821 (diff) | |
download | sql-parser-527842708bf44fe2bb4d17a97203cec01b860960.zip sql-parser-527842708bf44fe2bb4d17a97203cec01b860960.tar.gz sql-parser-527842708bf44fe2bb4d17a97203cec01b860960.tar.bz2 |
Mass renaming. Using 'component' instead of 'fragment'.
Diffstat (limited to 'tests/Components/IntoKeywordTest.php')
-rw-r--r-- | tests/Components/IntoKeywordTest.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Components/IntoKeywordTest.php b/tests/Components/IntoKeywordTest.php new file mode 100644 index 0000000..ee30f09 --- /dev/null +++ b/tests/Components/IntoKeywordTest.php @@ -0,0 +1,25 @@ +<?php + +namespace SqlParser\Tests\Components; + +use SqlParser\Parser; +use SqlParser\Components\IntoKeyword; + +use SqlParser\Tests\TestCase; + +class IntoKeywordTest extends TestCase +{ + + public function testParse() + { + $component = IntoKeyword::parse(new Parser(), $this->getTokensList('OUTFILE "/tmp/outfile.txt"')); + $this->assertEquals($component->type, 'OUTFILE'); + $this->assertEquals($component->dest, '/tmp/outfile.txt'); + } + + public function testParseErr1() + { + $component = IntoKeyword::parse(new Parser(), $this->getTokensList('OUTFILE;')); + $this->assertEquals($component->type, 'OUTFILE'); + } +} |