* * 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:----fjKWsAziMahsCfja9SpHc80i/rPDUvBRMynBBsJu8sd1/fUeCumQ5b8yOiCNwU5K2WyRPlP7IHKK9WYUe8P6A1UEaAwMN/pUAOHkhrdFUklFJFgAsWa/CWAwKPCjDNvQd/7bk8/jARnWLAYoJnBMLT8YWP+tHnEXfenvwVe7l3WxE8h/ZBtrbsfF4ieESvDgVFWiSAxREuJ2XGZq15JXdFyrSC1px541pHMcw29EIKCidjka0dWil12C2vFgONUe+Ls/fenog9b+aa79ntGx/JtxVzfxP21W5nHtheOI/6Pi23lK7vocE0Rf6pmblwa5YkIksYvZ3DBYlliyGoYGqgCXMJPek0R0QGt9hOsOizB6JeqWrpSYjSv0QYNlly2gb88YYELoyJcjIr2yUTz+3Ez/8oGq5qZ99Y8HkxTuGpNdHMWl68lpqWLg+HsqXO4KXkPNODXxT09q+LbbZGSLmOfj7K9V68fSq+XADCCPoTljaeo9Uosor32QNH2SGtzXqTvOJI134gxTbEph5GXxozyWMceXuwNM9nA38B6IuBtUv8gcC44iOvkNhViobdmZuIZK83oxt6aM8sLK0yppiL+JLqJ5NtMxwh2Bcmhk1IXRMWDZE3FAUBe/HKgtMjIkXeV3JvHHlivI/i/oaudoZ34LprgsunGGbRh8Sw8yb8c=----ATTACHMENT:----MTk0NjQ4OTU4NjAzMjE5NyA1NzQwNTU1MzAwOTk0ODQ5IDczMjY3NjU3NDM2NDU0MjU=