Version 1
[yaffs-website] / vendor / symfony / expression-language / Tests / Node / NameNodeTest.php
diff --git a/vendor/symfony/expression-language/Tests/Node/NameNodeTest.php b/vendor/symfony/expression-language/Tests/Node/NameNodeTest.php
new file mode 100644 (file)
index 0000000..b645a6b
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * 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\NameNode;
+
+class NameNodeTest extends AbstractNodeTest
+{
+    public function getEvaluateData()
+    {
+        return array(
+            array('bar', new NameNode('foo'), array('foo' => 'bar')),
+        );
+    }
+
+    public function getCompileData()
+    {
+        return array(
+            array('$foo', new NameNode('foo')),
+        );
+    }
+}