Ejemplo n.º 1
0
 /**
  * @dataProvider getInvalidPostfixData
  * @expectedException \Symfony\Component\ExpressionLanguage\SyntaxError
  */
 public function testParseWithInvalidPostfixData($expr, $names = array())
 {
     $lexer = new Lexer();
     $parser = new Parser(array());
     $parser->parse($lexer->tokenize($expr), $names);
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider getParseData
  */
 public function testParse($node, $expression, $names = array())
 {
     $lexer = new Lexer();
     $parser = new Parser(array());
     $this->assertEquals($node, $parser->parse($lexer->tokenize($expression), $names));
 }