summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDamian Dlugosz <bigfootdd@gmail.com>2017-02-12 15:22:42 +0100
committerDamian Dlugosz <bigfootdd@gmail.com>2017-02-12 15:22:42 +0100
commit08d5915850d4ab975c6ec2289ddb35c1c2cabea5 (patch)
treedccf8c95bc2bc03fd31d2d024b7a180ca0d58b17 /tests
parent677de552c8577b9eebc3f8393a25f07e4bed2f31 (diff)
downloadsql-parser-08d5915850d4ab975c6ec2289ddb35c1c2cabea5.zip
sql-parser-08d5915850d4ab975c6ec2289ddb35c1c2cabea5.tar.gz
sql-parser-08d5915850d4ab975c6ec2289ddb35c1c2cabea5.tar.bz2
Apply cs fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/Components/ArrayObjTest.php1
-rw-r--r--tests/Components/ExpressionTest.php2
-rw-r--r--tests/Components/LimitTest.php1
-rw-r--r--tests/Lexer/LexerTest.php1
-rw-r--r--tests/Misc/BugsTest.php1
-rw-r--r--tests/Parser/AlterStatementTest.php1
-rw-r--r--tests/Parser/CallStatementTest.php1
-rw-r--r--tests/Parser/CreateStatementTest.php1
-rw-r--r--tests/Parser/DeleteStatementTest.php1
-rw-r--r--tests/Parser/ExplainStatement.php1
-rw-r--r--tests/Parser/InsertStatementTest.php1
-rw-r--r--tests/Parser/ParserTest.php1
-rw-r--r--tests/Parser/RenameStatementTest.php1
-rw-r--r--tests/Parser/ReplaceStatementTest.php1
-rw-r--r--tests/Parser/RestoreStatementTest.php1
-rw-r--r--tests/Parser/SelectStatementTest.php1
-rw-r--r--tests/Parser/SetStatementTest.php1
-rw-r--r--tests/Parser/TransactionStatementTest.php1
-rw-r--r--tests/Parser/UpdateStatementTest.php1
-rw-r--r--tests/Utils/BufferedQueryTest.php2
-rw-r--r--tests/Utils/CLITest.php6
-rw-r--r--tests/Utils/FormatterTest.php7
-rw-r--r--tests/Utils/MiscTest.php2
-rw-r--r--tests/Utils/QueryTest.php4
-rw-r--r--tests/Utils/RoutineTest.php3
-rw-r--r--tests/Utils/TableTest.php2
-rw-r--r--tests/Utils/TokensTest.php7
27 files changed, 53 insertions, 0 deletions
diff --git a/tests/Components/ArrayObjTest.php b/tests/Components/ArrayObjTest.php
index cd851f8..e545eb2 100644
--- a/tests/Components/ArrayObjTest.php
+++ b/tests/Components/ArrayObjTest.php
@@ -38,6 +38,7 @@ class ArrayObjTest extends TestCase
/**
* @dataProvider testParseProvider
+ * @param mixed $test
*/
public function testParse($test)
{
diff --git a/tests/Components/ExpressionTest.php b/tests/Components/ExpressionTest.php
index b1d6268..adb973d 100644
--- a/tests/Components/ExpressionTest.php
+++ b/tests/Components/ExpressionTest.php
@@ -21,6 +21,8 @@ class ExpressionTest extends TestCase
/**
* @dataProvider testParseErrProvider
+ * @param mixed $expr
+ * @param mixed $error
*/
public function testParseErr($expr, $error)
{
diff --git a/tests/Components/LimitTest.php b/tests/Components/LimitTest.php
index 84c8e31..9c97861 100644
--- a/tests/Components/LimitTest.php
+++ b/tests/Components/LimitTest.php
@@ -22,6 +22,7 @@ class LimitTest extends TestCase
/**
* @dataProvider testParseProvider
+ * @param mixed $test
*/
public function testParse($test)
{
diff --git a/tests/Lexer/LexerTest.php b/tests/Lexer/LexerTest.php
index 91ddb6c..17436d8 100644
--- a/tests/Lexer/LexerTest.php
+++ b/tests/Lexer/LexerTest.php
@@ -48,6 +48,7 @@ class LexerTest extends TestCase
/**
* @dataProvider testLexProvider
+ * @param mixed $test
*/
public function testLex($test)
{
diff --git a/tests/Misc/BugsTest.php b/tests/Misc/BugsTest.php
index 4db08a2..1a90137 100644
--- a/tests/Misc/BugsTest.php
+++ b/tests/Misc/BugsTest.php
@@ -8,6 +8,7 @@ class BugsTest extends TestCase
{
/**
* @dataProvider testBugProvider
+ * @param mixed $test
*/
public function testBug($test)
{
diff --git a/tests/Parser/AlterStatementTest.php b/tests/Parser/AlterStatementTest.php
index d2a23b6..1aebf7c 100644
--- a/tests/Parser/AlterStatementTest.php
+++ b/tests/Parser/AlterStatementTest.php
@@ -8,6 +8,7 @@ class AlterStatementTest extends TestCase
{
/**
* @dataProvider testAlterProvider
+ * @param mixed $test
*/
public function testAlter($test)
{
diff --git a/tests/Parser/CallStatementTest.php b/tests/Parser/CallStatementTest.php
index e8efa71..9884d72 100644
--- a/tests/Parser/CallStatementTest.php
+++ b/tests/Parser/CallStatementTest.php
@@ -8,6 +8,7 @@ class CallStatementTest extends TestCase
{
/**
* @dataProvider testCallProvider
+ * @param mixed $test
*/
public function testCall($test)
{
diff --git a/tests/Parser/CreateStatementTest.php b/tests/Parser/CreateStatementTest.php
index 9a9350d..e524d36 100644
--- a/tests/Parser/CreateStatementTest.php
+++ b/tests/Parser/CreateStatementTest.php
@@ -8,6 +8,7 @@ class CreateStatementTest extends TestCase
{
/**
* @dataProvider testCreateProvider
+ * @param mixed $test
*/
public function testCreate($test)
{
diff --git a/tests/Parser/DeleteStatementTest.php b/tests/Parser/DeleteStatementTest.php
index e036907..181c7dd 100644
--- a/tests/Parser/DeleteStatementTest.php
+++ b/tests/Parser/DeleteStatementTest.php
@@ -8,6 +8,7 @@ class DeleteStatementTest extends TestCase
{
/**
* @dataProvider testDeleteProvider
+ * @param mixed $test
*/
public function testDelete($test)
{
diff --git a/tests/Parser/ExplainStatement.php b/tests/Parser/ExplainStatement.php
index 3f25a39..3e242af 100644
--- a/tests/Parser/ExplainStatement.php
+++ b/tests/Parser/ExplainStatement.php
@@ -8,6 +8,7 @@ class ExplainStatementTest extends TestCase
{
/**
* @dataProvider testExplainProvider
+ * @param mixed $test
*/
public function testExplain($test)
{
diff --git a/tests/Parser/InsertStatementTest.php b/tests/Parser/InsertStatementTest.php
index 2e869a8..4e5e646 100644
--- a/tests/Parser/InsertStatementTest.php
+++ b/tests/Parser/InsertStatementTest.php
@@ -8,6 +8,7 @@ class InsertStatementTest extends TestCase
{
/**
* @dataProvider testInsertProvider
+ * @param mixed $test
*/
public function testInsert($test)
{
diff --git a/tests/Parser/ParserTest.php b/tests/Parser/ParserTest.php
index cf83f3e..f2de43a 100644
--- a/tests/Parser/ParserTest.php
+++ b/tests/Parser/ParserTest.php
@@ -12,6 +12,7 @@ class ParserTest extends TestCase
{
/**
* @dataProvider testParseProvider
+ * @param mixed $test
*/
public function testParse($test)
{
diff --git a/tests/Parser/RenameStatementTest.php b/tests/Parser/RenameStatementTest.php
index ea9aab7..66b99a1 100644
--- a/tests/Parser/RenameStatementTest.php
+++ b/tests/Parser/RenameStatementTest.php
@@ -8,6 +8,7 @@ class RenameStatementTest extends TestCase
{
/**
* @dataProvider testRenameProvider
+ * @param mixed $test
*/
public function testRename($test)
{
diff --git a/tests/Parser/ReplaceStatementTest.php b/tests/Parser/ReplaceStatementTest.php
index 64f145f..b8f7f1d 100644
--- a/tests/Parser/ReplaceStatementTest.php
+++ b/tests/Parser/ReplaceStatementTest.php
@@ -8,6 +8,7 @@ class ReplaceStatementTest extends TestCase
{
/**
* @dataProvider testReplaceProvider
+ * @param mixed $test
*/
public function testReplace($test)
{
diff --git a/tests/Parser/RestoreStatementTest.php b/tests/Parser/RestoreStatementTest.php
index 64fe03b..fc71fce 100644
--- a/tests/Parser/RestoreStatementTest.php
+++ b/tests/Parser/RestoreStatementTest.php
@@ -8,6 +8,7 @@ class RestoreStatementTest extends TestCase
{
/**
* @dataProvider testRestoreProvider
+ * @param mixed $test
*/
public function testRestore($test)
{
diff --git a/tests/Parser/SelectStatementTest.php b/tests/Parser/SelectStatementTest.php
index 8f6e4b0..f222f06 100644
--- a/tests/Parser/SelectStatementTest.php
+++ b/tests/Parser/SelectStatementTest.php
@@ -17,6 +17,7 @@ class SelectStatementTest extends TestCase
/**
* @dataProvider testSelectProvider
+ * @param mixed $test
*/
public function testSelect($test)
{
diff --git a/tests/Parser/SetStatementTest.php b/tests/Parser/SetStatementTest.php
index 6385a27..6b43c5d 100644
--- a/tests/Parser/SetStatementTest.php
+++ b/tests/Parser/SetStatementTest.php
@@ -8,6 +8,7 @@ class SetStatementTest extends TestCase
{
/**
* @dataProvider testSetProvider
+ * @param mixed $test
*/
public function testSet($test)
{
diff --git a/tests/Parser/TransactionStatementTest.php b/tests/Parser/TransactionStatementTest.php
index 71d5d9e..618a305 100644
--- a/tests/Parser/TransactionStatementTest.php
+++ b/tests/Parser/TransactionStatementTest.php
@@ -8,6 +8,7 @@ class TransactionStatementTest extends TestCase
{
/**
* @dataProvider testTransactionProvider
+ * @param mixed $test
*/
public function testTransaction($test)
{
diff --git a/tests/Parser/UpdateStatementTest.php b/tests/Parser/UpdateStatementTest.php
index 1db2233..3e3d483 100644
--- a/tests/Parser/UpdateStatementTest.php
+++ b/tests/Parser/UpdateStatementTest.php
@@ -8,6 +8,7 @@ class UpdateStatementTest extends TestCase
{
/**
* @dataProvider testUpdateProvider
+ * @param mixed $test
*/
public function testUpdate($test)
{
diff --git a/tests/Utils/BufferedQueryTest.php b/tests/Utils/BufferedQueryTest.php
index 5e48dbe..eaf7b48 100644
--- a/tests/Utils/BufferedQueryTest.php
+++ b/tests/Utils/BufferedQueryTest.php
@@ -9,6 +9,8 @@ class BufferedQueryTest extends TestCase
{
/**
* @dataProvider testExtractProvider
+ * @param mixed $query
+ * @param mixed $chunkSize
*/
public function testExtract(
$query,
diff --git a/tests/Utils/CLITest.php b/tests/Utils/CLITest.php
index 6eee867..fec7ddf 100644
--- a/tests/Utils/CLITest.php
+++ b/tests/Utils/CLITest.php
@@ -30,6 +30,9 @@ class CLITest extends TestCase
/**
* @dataProvider highlightParams
+ * @param mixed $getopt
+ * @param mixed $output
+ * @param mixed $result
*/
public function testRunHighlight($getopt, $output, $result)
{
@@ -88,6 +91,9 @@ class CLITest extends TestCase
/**
* @dataProvider lintParams
+ * @param mixed $getopt
+ * @param mixed $output
+ * @param mixed $result
*/
public function testRunLint($getopt, $output, $result)
{
diff --git a/tests/Utils/FormatterTest.php b/tests/Utils/FormatterTest.php
index 4502bb6..73a7506 100644
--- a/tests/Utils/FormatterTest.php
+++ b/tests/Utils/FormatterTest.php
@@ -9,6 +9,9 @@ class FormatTest extends TestCase
{
/**
* @dataProvider mergeFormats
+ * @param mixed $default
+ * @param mixed $overriding
+ * @param mixed $expected
*/
public function testMergeFormats($default, $overriding, $expected)
{
@@ -231,6 +234,10 @@ class FormatTest extends TestCase
/**
* @dataProvider formatQueries
+ * @param mixed $query
+ * @param mixed $text
+ * @param mixed $cli
+ * @param mixed $html
*/
public function testFormat($query, $text, $cli, $html, array $options = array())
{
diff --git a/tests/Utils/MiscTest.php b/tests/Utils/MiscTest.php
index 1eb0c80..8c8e093 100644
--- a/tests/Utils/MiscTest.php
+++ b/tests/Utils/MiscTest.php
@@ -10,6 +10,8 @@ class MiscTest extends TestCase
{
/**
* @dataProvider getAliasesProvider
+ * @param mixed $query
+ * @param mixed $db
*/
public function testGetAliases($query, $db, array $expected)
{
diff --git a/tests/Utils/QueryTest.php b/tests/Utils/QueryTest.php
index a942064..fb34c5f 100644
--- a/tests/Utils/QueryTest.php
+++ b/tests/Utils/QueryTest.php
@@ -10,6 +10,8 @@ class QueryTest extends TestCase
{
/**
* @dataProvider testGetFlagsProvider
+ * @param mixed $query
+ * @param mixed $expected
*/
public function testGetFlags($query, $expected)
{
@@ -347,6 +349,8 @@ class QueryTest extends TestCase
/**
* @dataProvider testGetTablesProvider
+ * @param mixed $query
+ * @param mixed $expected
*/
public function testGetTables($query, $expected)
{
diff --git a/tests/Utils/RoutineTest.php b/tests/Utils/RoutineTest.php
index ee47b97..3fe38c6 100644
--- a/tests/Utils/RoutineTest.php
+++ b/tests/Utils/RoutineTest.php
@@ -10,6 +10,7 @@ class RoutineTest extends TestCase
{
/**
* @dataProvider getReturnTypeProvider
+ * @param mixed $def
*/
public function testGetReturnType($def, array $expected)
{
@@ -49,6 +50,7 @@ class RoutineTest extends TestCase
/**
* @dataProvider getParameterProvider
+ * @param mixed $def
*/
public function testGetParameter($def, array $expected)
{
@@ -88,6 +90,7 @@ class RoutineTest extends TestCase
/**
* @dataProvider getParametersProvider
+ * @param mixed $query
*/
public function testGetParameters($query, array $expected)
{
diff --git a/tests/Utils/TableTest.php b/tests/Utils/TableTest.php
index bbd849d..52a49b3 100644
--- a/tests/Utils/TableTest.php
+++ b/tests/Utils/TableTest.php
@@ -10,6 +10,7 @@ class TableTest extends TestCase
{
/**
* @dataProvider getForeignKeysProvider
+ * @param mixed $query
*/
public function testGetForeignKeys($query, array $expected)
{
@@ -110,6 +111,7 @@ class TableTest extends TestCase
/**
* @dataProvider getFieldsProvider
+ * @param mixed $query
*/
public function testGetFields($query, array $expected)
{
diff --git a/tests/Utils/TokensTest.php b/tests/Utils/TokensTest.php
index 5ef7b37..2f49082 100644
--- a/tests/Utils/TokensTest.php
+++ b/tests/Utils/TokensTest.php
@@ -10,6 +10,10 @@ class TokensTest extends TestCase
{
/**
* @dataProvider replaceTokensProvider
+ * @param mixed $list
+ * @param mixed $find
+ * @param mixed $replace
+ * @param mixed $expected
*/
public function testReplaceTokens($list, $find, $replace, $expected)
{
@@ -36,6 +40,9 @@ class TokensTest extends TestCase
/**
* @dataProvider matchProvider
+ * @param mixed $token
+ * @param mixed $pattern
+ * @param mixed $expected
*/
public function testMatch($token, $pattern, $expected)
{