NumberTest.php 456 B

12345678910111213141516171819
  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. }