NameNodeTest.php 779 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\ExpressionLanguage\Tests\Node;
  11. use Symfony\Component\ExpressionLanguage\Node\NameNode;
  12. class NameNodeTest extends AbstractNodeTest
  13. {
  14. public function getEvaluateData()
  15. {
  16. return [
  17. ['bar', new NameNode('foo'), ['foo' => 'bar']],
  18. ];
  19. }
  20. public function getCompileData()
  21. {
  22. return [
  23. ['$foo', new NameNode('foo')],
  24. ];
  25. }
  26. public function getDumpData()
  27. {
  28. return [
  29. ['foo', new NameNode('foo')],
  30. ];
  31. }
  32. }