SqlParser\Tests\Components\OptionsArrayTest::testParseExpr PHP Метод

testParseExpr() публичный Метод

public testParseExpr ( )
    public function testParseExpr()
    {
        $component = OptionsArray::parse(new Parser(), $this->getTokensList('SUM = (3 + 5) RESULT = 8'), array('SUM' => array(1, 'expr', array('parenthesesDelimited' => true)), 'RESULT' => array(2, 'var')));
        $this->assertEquals('(3 + 5)', (string) $component->has('SUM', true));
        $this->assertEquals('8', $component->has('RESULT'));
    }