summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Components/CreateDefinitionTest.php2
-rw-r--r--tests/Components/LimitTest.php1
-rw-r--r--tests/Utils/BufferedQueryTest.php4
3 files changed, 3 insertions, 4 deletions
diff --git a/tests/Components/CreateDefinitionTest.php b/tests/Components/CreateDefinitionTest.php
index b14708c..3683e29 100644
--- a/tests/Components/CreateDefinitionTest.php
+++ b/tests/Components/CreateDefinitionTest.php
@@ -38,7 +38,7 @@ class CreateDefinitionTest extends TestCase
public function testParseErr2()
{
$parser = new Parser();
- $component = CreateDefinition::parse(
+ CreateDefinition::parse(
$parser,
$this->getTokensList(')')
);
diff --git a/tests/Components/LimitTest.php b/tests/Components/LimitTest.php
index 466a199..e78f5ff 100644
--- a/tests/Components/LimitTest.php
+++ b/tests/Components/LimitTest.php
@@ -3,7 +3,6 @@
namespace PhpMyAdmin\SqlParser\Tests\Components;
use PhpMyAdmin\SqlParser\Components\Limit;
-use PhpMyAdmin\SqlParser\Parser;
use PhpMyAdmin\SqlParser\Tests\TestCase;
class LimitTest extends TestCase
diff --git a/tests/Utils/BufferedQueryTest.php b/tests/Utils/BufferedQueryTest.php
index 182c1ab..731fc0e 100644
--- a/tests/Utils/BufferedQueryTest.php
+++ b/tests/Utils/BufferedQueryTest.php
@@ -39,7 +39,7 @@ class BufferedQueryTest extends TestCase
// Feeding chunks and extracting queries.
$i = 0;
while ($i < $count) {
- if (($stmt = $bq->extract())) {
+ if ($stmt = $bq->extract()) {
$statements[] = $stmt;
} else {
$bq->query .= $chunks[$i++];
@@ -47,7 +47,7 @@ class BufferedQueryTest extends TestCase
}
// Feeding ended, extracting remaining queries.
- while (($stmt = $bq->extract(true))) {
+ while ($stmt = $bq->extract(true)) {
$statements[] = $stmt;
}