for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpMyAdmin\SqlParser\Tests\Components;
use PhpMyAdmin\SqlParser\Components\ExpressionArray;
use PhpMyAdmin\SqlParser\Parser;
use PhpMyAdmin\SqlParser\Tests\TestCase;
class ExpressionArrayTest extends TestCase
{
public function testParse()
$component = ExpressionArray::parse(
new Parser(),
$this->getTokensList('(expr)'),
array(
'breakOnParentheses' => true
)
);
$this->assertEquals(array(), $component);
}
public function testParse2()
$this->getTokensList('(expr) +'),
'parenthesesDelimited' => true
$this->assertCount(1, $component);
$this->assertEquals('(expr)', $component[0]->expr);