diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-07-15 16:46:40 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-07-15 16:46:40 +0300 |
commit | 56ce2d7a37a1ed1d6aabf2b7908ae5da43863497 (patch) | |
tree | 86e013988fcf31139aa0ffb7396df227e7b1e0a6 /tests/Components/KeyTest.php | |
parent | 875fd4377a920e9d6e10a752cf96735c9ef41230 (diff) | |
download | sql-parser-56ce2d7a37a1ed1d6aabf2b7908ae5da43863497.zip sql-parser-56ce2d7a37a1ed1d6aabf2b7908ae5da43863497.tar.gz sql-parser-56ce2d7a37a1ed1d6aabf2b7908ae5da43863497.tar.bz2 |
Better error detection. Fixed some of the old messages.
Minor coding style fixes.
Diffstat (limited to 'tests/Components/KeyTest.php')
-rw-r--r-- | tests/Components/KeyTest.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/Components/KeyTest.php b/tests/Components/KeyTest.php new file mode 100644 index 0000000..e8a462e --- /dev/null +++ b/tests/Components/KeyTest.php @@ -0,0 +1,21 @@ +<?php + +namespace SqlParser\Tests\Components; + +use SqlParser\Parser; +use SqlParser\Components\Key; + +use SqlParser\Tests\TestCase; + +class KeyTest extends TestCase +{ + + public function testParse() + { + $component = Key::parse( + new Parser(), + $this->getTokensList('') + ); + $this->assertEquals(null, $component->name); + } +} |