summaryrefslogtreecommitdiffstats
path: root/tests/Components/ArrayObjTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components/ArrayObjTest.php')
-rw-r--r--tests/Components/ArrayObjTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Components/ArrayObjTest.php b/tests/Components/ArrayObjTest.php
index 978b249..f683d72 100644
--- a/tests/Components/ArrayObjTest.php
+++ b/tests/Components/ArrayObjTest.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Tests\Components;
use PhpMyAdmin\SqlParser\Components\ArrayObj;
+use PhpMyAdmin\SqlParser\Components\Expression;
use PhpMyAdmin\SqlParser\Parser;
use PhpMyAdmin\SqlParser\Tests\TestCase;
@@ -27,12 +28,14 @@ class ArrayObjTest extends TestCase
new Parser(),
$this->getTokensList('(1 + 2, 3 + 4)'),
[
- 'type' => 'PhpMyAdmin\\SqlParser\\Components\\Expression',
+ 'type' => Expression::class,
'typeOptions' => [
'breakOnParentheses' => true,
],
]
);
+ $this->assertInstanceOf(Expression::class, $components[0]);
+ $this->assertInstanceOf(Expression::class, $components[1]);
$this->assertEquals($components[0]->expr, '1 + 2');
$this->assertEquals($components[1]->expr, '3 + 4');
}