summaryrefslogtreecommitdiffstats
path: root/tests/Parser/ParserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Parser/ParserTest.php')
-rw-r--r--tests/Parser/ParserTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/Parser/ParserTest.php b/tests/Parser/ParserTest.php
index 9d1b7b8..16dcbf9 100644
--- a/tests/Parser/ParserTest.php
+++ b/tests/Parser/ParserTest.php
@@ -22,11 +22,11 @@ class ParserTest extends TestCase
public function testParseProvider()
{
- return array(
- array('parser/parse'),
- array('parser/parse2'),
- array('parser/parseDelimiter'),
- );
+ return [
+ ['parser/parse'],
+ ['parser/parse2'],
+ ['parser/parseDelimiter'],
+ ];
}
public function testUnrecognizedStatement()
@@ -60,10 +60,10 @@ class ParserTest extends TestCase
$this->assertEquals(
$parser->errors,
- array(
+ [
new ParserException('error #1', new Token('foo'), 1),
new ParserException('error #2', new Token('bar'), 2),
- )
+ ]
);
}