ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
OptionalTest.php
Go to the documentation of this file.
1
<?
php
2
3
/*
4
* This file is part of Twig.
5
*
6
* (c) Fabien Potencier
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
class
Twig_Tests_Grammar_OptionalTest
extends
PHPUnit_Framework_TestCase
13
{
14
public
function
testMagicToString
()
15
{
16
$grammar =
new
Twig_Extensions_Grammar_Optional
(
new
Twig_Extensions_Grammar_Constant
(
'foo'
),
new
Twig_Extensions_Grammar_Number
(
'bar'
));
17
$this->assertEquals(
'[foo <bar:number>]'
, (
string
) $grammar);
18
}
19
}
Twig_Tests_Grammar_OptionalTest\testMagicToString
testMagicToString()
Definition:
OptionalTest.php:14
Twig_Extensions_Grammar_Number
Definition:
Number.php:15
PHPUnit_Framework_TestCase
Twig_Extensions_Grammar_Optional
Definition:
Optional.php:15
Twig_Extensions_Grammar_Constant
Definition:
Constant.php:15
Twig_Tests_Grammar_OptionalTest
Definition:
OptionalTest.php:12
php
libs
composer
vendor
twig
extensions
test
Twig
Tests
Grammar
OptionalTest.php
Generated on Thu Jan 30 2025 19:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)