NumberTest.php 455B

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_NumberTest extends PHPUnit_Framework_TestCase
  11. {
  12. public function testMagicToString()
  13. {
  14. $grammar = new Twig_Extensions_Grammar_Number('foo');
  15. $this->assertEquals('<foo:number>', (string) $grammar);
  16. }
  17. }