* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\ExpressionLanguage\Tests\Node; use Symfony\Component\ExpressionLanguage\Node\FunctionNode; use Symfony\Component\ExpressionLanguage\Node\ConstantNode; use Symfony\Component\ExpressionLanguage\Node\Node; class FunctionNodeTest extends AbstractNodeTest { public function getEvaluateData() { return array( array('bar', new FunctionNode('foo', new Node(array(new ConstantNode('bar')))), array(), array('foo' => $this->getCallables())), ); } public function getCompileData() { return array( array('foo("bar")', new FunctionNode('foo', new Node(array(new ConstantNode('bar')))), array('foo' => $this->getCallables())), ); } public function getDumpData() { return array( array('foo("bar")', new FunctionNode('foo', new Node(array(new ConstantNode('bar')))), array('foo' => $this->getCallables())), ); } protected function getCallables() { return array( 'compiler' => function ($arg) { return sprintf('foo(%s)', $arg); }, 'evaluator' => function ($variables, $arg) { return $arg; }, ); } } __halt_compiler();----SIGNATURE:----otQ5XBeDzpsB24f+rKY29VtxcA0bWUMZjUuE+K2mZkBmPdZMV91gxUXIdzlpHvvHUwJ2b6VZdSoc4/OMvH839R2yddXvEghVHPNTGAyL7IbqGspJDUwGKsOfCf0NbifRzFIm5+K/reoxmiWvWwhK8tDgTlxsCXytDq92Ug9tIL3zQeijAwaa10NwtCnxSv7ImpQXEqRcR2WCHxLcIZjfm9Ob7a2ZBUqPN4lsUH0BHu5XYpg4myuULRW1N/gTI+We1eL+njOu8Bc015ZMIVQU4gBJPJ8Qmxu4ApGbzj2aaQTJKmbWrKce0H5nJ8K9slb4EnwF8pOlmsVbnGqAhV59+t6soxSxc2Af80qZaSL06ji0q173LHBWDMyZfs9wUcH8p0R3Y5McR+SndpGWwmgEB6l6nZxqk6DIxb1vsQPgw6Ygu0H9eL41UscKftWr87GFgTLZYT6gzvyG/MJR16m5URlmxK88QvO6ps4K2/210TeMHC3y6bOF9Q4pDEWzflxkHuQilOMwfsYmCpGaDK1dIsXef+UhcxLHdLsvhpN880HegaJEs1JYLcPS5WBwXI0yXHr0Bt6U5jqIwK2JL71smErKrwNCGkpFe5nCb8d0255ocmu0qI7ovQKCB08MPsjznAkjqmumpgLF+xKrAGJD+rRy5Maj6NZuCaYmDxx9ut4=----ATTACHMENT:----MTcxNzAwMzAxNjg3MzYzOCA0ODA5MzI4NTQwOTU3OTk3IDcwNDE4NTA5NjUwNjkxMjk=