ConstantTest.php 450B

1234567891011121314151617181920
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. class Twig_Tests_Grammar_ConstantTest extends PHPUnit_Framework_TestCase
  11. {
  12. public function testMagicToString()
  13. {
  14. $grammar = new Twig_Extensions_Grammar_Constant('foo');
  15. $this->assertEquals('foo', (string) $grammar);
  16. }
  17. }