summaryrefslogtreecommitdiffstats
path: root/tests/Components/LockExpressionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components/LockExpressionTest.php')
-rw-r--r--tests/Components/LockExpressionTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/Components/LockExpressionTest.php b/tests/Components/LockExpressionTest.php
index 56654a6..0f8e418 100644
--- a/tests/Components/LockExpressionTest.php
+++ b/tests/Components/LockExpressionTest.php
@@ -41,28 +41,28 @@ class LockExpressionTest extends TestCase
public function testParseErrProvider()
{
- return array(
- array(
+ return [
+ [
'table1 AS t1',
'Unexpected end of LOCK expression.',
- ),
- array(
+ ],
+ [
'table1 AS t1 READ WRITE',
'Unexpected keyword.',
- ),
- array(
+ ],
+ [
'table1 AS t1 READ 2',
'Unexpected token.',
- ),
- );
+ ],
+ ];
}
public function testBuild()
{
- $component = array(
+ $component = [
LockExpression::parse(new Parser(), $this->getTokensList('table1 AS t1 READ LOCAL')),
LockExpression::parse(new Parser(), $this->getTokensList('table2 LOW_PRIORITY WRITE')),
- );
+ ];
$this->assertEquals(
LockExpression::build($component),
'table1 AS `t1` READ LOCAL, table2 LOW_PRIORITY WRITE'