Vendor update && Started using DoctrineMigrations

This commit is contained in:
Polonkai Gergely
2012-07-23 17:09:03 +02:00
parent 7c36f93436
commit bf46316347
1102 changed files with 103189 additions and 7 deletions

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}