diff options
author | Michal Čihař <michal@cihar.com> | 2017-12-15 08:04:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 08:04:48 +0100 |
commit | 0f8d79b722b63d68b093aa7c17584b183d58e8cf (patch) | |
tree | 8ad8106c41f3a5534c149c2ede12f247e905ecfb /tests/Components/Array2dTest.php | |
parent | acd10db572bf25c6b939311ea4bd954129b4c9ef (diff) | |
parent | 768a0d74909f11939a9abda851db62bafedafff9 (diff) | |
download | sql-parser-0f8d79b722b63d68b093aa7c17584b183d58e8cf.zip sql-parser-0f8d79b722b63d68b093aa7c17584b183d58e8cf.tar.gz sql-parser-0f8d79b722b63d68b093aa7c17584b183d58e8cf.tar.bz2 |
Merge pull request #183 from carusogabriel/refactoring-tests
Refactoring tests
Diffstat (limited to 'tests/Components/Array2dTest.php')
-rw-r--r-- | tests/Components/Array2dTest.php | 16 |
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.', |