summaryrefslogtreecommitdiffstats
path: root/tests/Components/Array2dTest.php
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2017-12-14 22:13:37 -0200
committerGabriel Caruso <carusogabriel34@gmail.com>2017-12-14 22:13:37 -0200
commit768a0d74909f11939a9abda851db62bafedafff9 (patch)
tree8ad8106c41f3a5534c149c2ede12f247e905ecfb /tests/Components/Array2dTest.php
parentacd10db572bf25c6b939311ea4bd954129b4c9ef (diff)
downloadsql-parser-768a0d74909f11939a9abda851db62bafedafff9.zip
sql-parser-768a0d74909f11939a9abda851db62bafedafff9.tar.gz
sql-parser-768a0d74909f11939a9abda851db62bafedafff9.tar.bz2
Refactoring tests
Diffstat (limited to 'tests/Components/Array2dTest.php')
-rw-r--r--tests/Components/Array2dTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/Components/Array2dTest.php b/tests/Components/Array2dTest.php
index b7ee756..a4dd7b5 100644
--- a/tests/Components/Array2dTest.php
+++ b/tests/Components/Array2dTest.php
@@ -44,9 +44,9 @@ class Array2dTest extends TestCase
{
$parser = new Parser();
Array2d::parse($parser, $this->getTokensList(')'));
- $this->assertEquals(
+ $this->assertCount(
1,
- count($parser->errors)
+ $parser->errors
);
$this->assertEquals(
'An opening bracket followed by a set of values was expected.',
@@ -58,9 +58,9 @@ class Array2dTest extends TestCase
{
$parser = new Parser();
Array2d::parse($parser, $this->getTokensList('TABLE'));
- $this->assertEquals(
+ $this->assertCount(
1,
- count($parser->errors)
+ $parser->errors
);
$this->assertEquals(
'An opening bracket followed by a set of values was expected.',
@@ -72,9 +72,9 @@ class Array2dTest extends TestCase
{
$parser = new Parser();
Array2d::parse($parser, $this->getTokensList('(1, 2),'));
- $this->assertEquals(
+ $this->assertCount(
1,
- count($parser->errors)
+ $parser->errors
);
$this->assertEquals(
'An opening bracket followed by a set of values was expected.',
@@ -86,9 +86,9 @@ class Array2dTest extends TestCase
{
$parser = new Parser();
Array2d::parse($parser, $this->getTokensList('(1, 2),(3)'));
- $this->assertEquals(
+ $this->assertCount(
1,
- count($parser->errors)
+ $parser->errors
);
$this->assertEquals(
'2 values were expected, but found 1.',