summaryrefslogtreecommitdiff
path: root/vendor/symfony/expression-language/Tests/Node/FunctionNodeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/expression-language/Tests/Node/FunctionNodeTest.php')
-rw-r--r--vendor/symfony/expression-language/Tests/Node/FunctionNodeTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/vendor/symfony/expression-language/Tests/Node/FunctionNodeTest.php b/vendor/symfony/expression-language/Tests/Node/FunctionNodeTest.php
index 3bddc5e564..c6cb02c1b9 100644
--- a/vendor/symfony/expression-language/Tests/Node/FunctionNodeTest.php
+++ b/vendor/symfony/expression-language/Tests/Node/FunctionNodeTest.php
@@ -19,34 +19,34 @@ 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())),
- );
+ return [
+ ['bar', new FunctionNode('foo', new Node([new ConstantNode('bar')])), [], ['foo' => $this->getCallables()]],
+ ];
}
public function getCompileData()
{
- return array(
- array('foo("bar")', new FunctionNode('foo', new Node(array(new ConstantNode('bar')))), array('foo' => $this->getCallables())),
- );
+ return [
+ ['foo("bar")', new FunctionNode('foo', new Node([new ConstantNode('bar')])), ['foo' => $this->getCallables()]],
+ ];
}
public function getDumpData()
{
- return array(
- array('foo("bar")', new FunctionNode('foo', new Node(array(new ConstantNode('bar')))), array('foo' => $this->getCallables())),
- );
+ return [
+ ['foo("bar")', new FunctionNode('foo', new Node([new ConstantNode('bar')])), ['foo' => $this->getCallables()]],
+ ];
}
protected function getCallables()
{
- return array(
+ return [
'compiler' => function ($arg) {
return sprintf('foo(%s)', $arg);
},
'evaluator' => function ($variables, $arg) {
return $arg;
},
- );
+ ];
}
}