summaryrefslogtreecommitdiffstats
path: root/tests/Components/ExpressionArrayTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components/ExpressionArrayTest.php')
-rw-r--r--tests/Components/ExpressionArrayTest.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/Components/ExpressionArrayTest.php b/tests/Components/ExpressionArrayTest.php
index f500f8a..597d0a3 100644
--- a/tests/Components/ExpressionArrayTest.php
+++ b/tests/Components/ExpressionArrayTest.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Tests\Components;
@@ -13,11 +14,11 @@ class ExpressionArrayTest extends TestCase
$component = ExpressionArray::parse(
new Parser(),
$this->getTokensList('(expr)'),
- array(
- 'breakOnParentheses' => true
- )
+ [
+ 'breakOnParentheses' => true,
+ ]
);
- $this->assertEquals(array(), $component);
+ $this->assertEquals([], $component);
}
public function testParse2()
@@ -25,9 +26,9 @@ class ExpressionArrayTest extends TestCase
$component = ExpressionArray::parse(
new Parser(),
$this->getTokensList('(expr) +'),
- array(
- 'parenthesesDelimited' => true
- )
+ [
+ 'parenthesesDelimited' => true,
+ ]
);
$this->assertCount(1, $component);
$this->assertEquals('(expr)', $component[0]->expr);