Vendor update && Started using DoctrineMigrations
This commit is contained in:
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ArgumentsTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ArgumentsTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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_ArgumentsTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Arguments('foo');
|
||||
$this->assertEquals('<foo:arguments>', (string) $grammar);
|
||||
}
|
||||
}
|
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ArrayTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ArrayTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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_ArrayTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Array('foo');
|
||||
$this->assertEquals('<foo:array>', (string) $grammar);
|
||||
}
|
||||
}
|
19
vendor/twig/extensions/test/Twig/Tests/Grammar/BodyTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/BodyTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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_BodyTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Body('foo');
|
||||
$this->assertEquals('<foo:body>', (string) $grammar);
|
||||
}
|
||||
}
|
19
vendor/twig/extensions/test/Twig/Tests/Grammar/BooleanTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/BooleanTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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_BooleanTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Boolean('foo');
|
||||
$this->assertEquals('<foo:boolean>', (string) $grammar);
|
||||
}
|
||||
}
|
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ConstantTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ConstantTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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_ConstantTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Constant('foo');
|
||||
$this->assertEquals('foo', (string) $grammar);
|
||||
}
|
||||
}
|
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ExpressionTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/ExpressionTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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_ExpressionTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Expression('foo');
|
||||
$this->assertEquals('<foo>', (string) $grammar);
|
||||
}
|
||||
}
|
19
vendor/twig/extensions/test/Twig/Tests/Grammar/NumberTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/NumberTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
19
vendor/twig/extensions/test/Twig/Tests/Grammar/OptionalTest.php
vendored
Normal file
19
vendor/twig/extensions/test/Twig/Tests/Grammar/OptionalTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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_OptionalTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Optional(new Twig_Extensions_Grammar_Constant('foo'), new Twig_Extensions_Grammar_Number('bar'));
|
||||
$this->assertEquals('[foo <bar:number>]', (string) $grammar);
|
||||
}
|
||||
}
|
23
vendor/twig/extensions/test/Twig/Tests/Grammar/TagTest.php
vendored
Normal file
23
vendor/twig/extensions/test/Twig/Tests/Grammar/TagTest.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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_TagTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testMagicToString()
|
||||
{
|
||||
$grammar = new Twig_Extensions_Grammar_Tag(
|
||||
new Twig_Extensions_Grammar_Constant('foo'),
|
||||
new Twig_Extensions_Grammar_Number('bar'),
|
||||
new Twig_Extensions_Grammar_Optional(new Twig_Extensions_Grammar_Constant('foo'), new Twig_Extensions_Grammar_Number('bar'))
|
||||
);
|
||||
$this->assertEquals('foo <bar:number> [foo <bar:number>]', (string) $grammar);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user