diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-06-30 01:05:38 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-06-30 01:05:38 +0300 |
commit | a2354cf85acd032efa374d1f9f611f02fdbe75f6 (patch) | |
tree | 3094a3144239860cb72c2f0871660a3f7c862e53 /tests/Parser/ArrayFragmentTest.php | |
parent | 5f15789bd325c4fcd6642ecfeea18a5b639acc99 (diff) | |
download | sql-parser-a2354cf85acd032efa374d1f9f611f02fdbe75f6.zip sql-parser-a2354cf85acd032efa374d1f9f611f02fdbe75f6.tar.gz sql-parser-a2354cf85acd032efa374d1f9f611f02fdbe75f6.tar.bz2 |
Added statement builder (converts statement trees into executable query strings).
Implemented support for UNIONs in parser.
Code coverage is now over 99%.
Fixed CHECKSUM statement (typos).
Refactored code. Removed pieces of duplicated code.
Improved documentation and fixed coding style.
Improved PHPUnit's configuration (more test suites for fine-grained testing).
Diffstat (limited to 'tests/Parser/ArrayFragmentTest.php')
-rw-r--r-- | tests/Parser/ArrayFragmentTest.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Parser/ArrayFragmentTest.php b/tests/Parser/ArrayFragmentTest.php new file mode 100644 index 0000000..a31bf2a --- /dev/null +++ b/tests/Parser/ArrayFragmentTest.php @@ -0,0 +1,26 @@ +<?php + +namespace SqlParser\Tests\Parser; + +use SqlParser\Tests\TestCase; + +class ArrayFragmentTest extends TestCase +{ + + /** + * @dataProvider testArrayProvider + */ + public function testArray($test) + { + $this->runParserTest($test); + } + + public function testArrayProvider() + { + return array( + array('parseArrayErr1'), + array('parseArrayErr2'), + array('parseArrayErr3'), + ); + } +} |