summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-09-25 11:01:45 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-09-25 11:01:45 +0300
commit8f19b8f15e098b06587cc67ce02ecc204fd201c7 (patch)
tree4219e5576893acc5edf7035218114ce2dbd39ffc /tests
parent1415469b34b1fc33189e2c801302597b5b50f704 (diff)
downloadsql-parser-8f19b8f15e098b06587cc67ce02ecc204fd201c7.zip
sql-parser-8f19b8f15e098b06587cc67ce02ecc204fd201c7.tar.gz
sql-parser-8f19b8f15e098b06587cc67ce02ecc204fd201c7.tar.bz2
Updated coding style to follow PSR-2 coding standards.
Diffstat (limited to 'tests')
-rw-r--r--tests/Components/Array2dTest.php1
-rw-r--r--tests/Lexer/LexerTest.php5
-rw-r--r--tests/Utils/BufferedQueryTest.php5
-rw-r--r--tests/Utils/QueryTest.php3
4 files changed, 10 insertions, 4 deletions
diff --git a/tests/Components/Array2dTest.php b/tests/Components/Array2dTest.php
index b268d99..a1c9786 100644
--- a/tests/Components/Array2dTest.php
+++ b/tests/Components/Array2dTest.php
@@ -69,5 +69,4 @@ class Array2dTest extends TestCase
$parser->errors[0]->getMessage()
);
}
-
}
diff --git a/tests/Lexer/LexerTest.php b/tests/Lexer/LexerTest.php
index c17e78d..9c22768 100644
--- a/tests/Lexer/LexerTest.php
+++ b/tests/Lexer/LexerTest.php
@@ -20,7 +20,10 @@ class LexerTest extends TestCase
$lexer->error(__('error #1'), 'foo', 1, 2);
$lexer->error(
- sprintf(__('%2$s #%1$d'), 2, 'error'), 'bar', 3, 4
+ sprintf(__('%2$s #%1$d'), 2, 'error'),
+ 'bar',
+ 3,
+ 4
);
$this->assertEquals(
diff --git a/tests/Utils/BufferedQueryTest.php b/tests/Utils/BufferedQueryTest.php
index 3f74429..185e9d2 100644
--- a/tests/Utils/BufferedQueryTest.php
+++ b/tests/Utils/BufferedQueryTest.php
@@ -13,7 +13,10 @@ class BufferedQueryTest extends TestCase
* @dataProvider testExtractProvider
*/
public function testExtract(
- $query, $chunkSize, array $options = array(), array $expected
+ $query,
+ $chunkSize,
+ array $options = array(),
+ array $expected
) {
$chunks = str_split($query, $chunkSize);
$count = count($chunks);
diff --git a/tests/Utils/QueryTest.php b/tests/Utils/QueryTest.php
index 9929da1..8455dee 100644
--- a/tests/Utils/QueryTest.php
+++ b/tests/Utils/QueryTest.php
@@ -369,7 +369,8 @@ class QueryTest extends TestCase
Query::getClause(
$parser->statements[0],
$parser->list,
- 'LIMIT', 'FROM'
+ 'LIMIT',
+ 'FROM'
)
);
}