kekrozsak/vendor/twig/extensions/test/Twig/Tests/Grammar/NumberTest.php

20 lines
455 B
PHP
Raw Normal View History

<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Twig_Tests_Grammar_NumberTest extends PHPUnit_Framework_TestCase
{
public function testMagicToString()
{
$grammar = new Twig_Extensions_Grammar_Number('foo');
$this->assertEquals('<foo:number>', (string) $grammar);
}
}