mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
removed @covers annotations
This commit is contained in:
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_AutoEscapeTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_AutoEscape::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$body = new Twig_Node(array(new Twig_Node_Text('foo', 1)));
|
||||
@@ -23,15 +20,6 @@ class Twig_Tests_Node_AutoEscapeTest extends Twig_Test_NodeTestCase
|
||||
$this->assertTrue($node->getAttribute('value'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_AutoEscape::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$body = new Twig_Node(array(new Twig_Node_Text('foo', 1)));
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_BlockReferenceTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_BlockReference::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$node = new Twig_Node_BlockReference('foo', 1);
|
||||
@@ -21,15 +18,6 @@ class Twig_Tests_Node_BlockReferenceTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_BlockReference::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
return array(
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_BlockTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Block::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$body = new Twig_Node_Text('foo', 1);
|
||||
@@ -23,15 +20,6 @@ class Twig_Tests_Node_BlockTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Block::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$body = new Twig_Node_Text('foo', 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_DoTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Do::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant('foo', 1);
|
||||
@@ -22,15 +19,6 @@ class Twig_Tests_Node_DoTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($expr, $node->getNode('expr'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Do::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_ArrayTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Array::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$elements = array(new Twig_Node_Expression_Constant('foo', 1), $foo = new Twig_Node_Expression_Constant('bar', 1));
|
||||
@@ -22,15 +19,6 @@ class Twig_Tests_Node_Expression_ArrayTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($foo, $node->getNode(1));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Array::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$elements = array(
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_AssignNameTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_AssignName::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$node = new Twig_Node_Expression_AssignName('foo', 1);
|
||||
@@ -21,15 +18,6 @@ class Twig_Tests_Node_Expression_AssignNameTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_AssignName::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$node = new Twig_Node_Expression_AssignName('foo', 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_AddTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Add::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_AddTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Add::compile
|
||||
* @covers Twig_Node_Expression_Binary_Add::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_AndTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_And::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_AndTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_And::compile
|
||||
* @covers Twig_Node_Expression_Binary_And::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_ConcatTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Concat::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_ConcatTest extends Twig_Test_NodeTestCas
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Concat::compile
|
||||
* @covers Twig_Node_Expression_Binary_Concat::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_DivTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Div::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_DivTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Div::compile
|
||||
* @covers Twig_Node_Expression_Binary_Div::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_FloorDivTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_FloorDiv::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_FloorDivTest extends Twig_Test_NodeTestC
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_FloorDiv::compile
|
||||
* @covers Twig_Node_Expression_Binary_FloorDiv::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_ModTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Mod::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_ModTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Mod::compile
|
||||
* @covers Twig_Node_Expression_Binary_Mod::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_MulTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Mul::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_MulTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Mul::compile
|
||||
* @covers Twig_Node_Expression_Binary_Mul::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_OrTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Or::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_OrTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Or::compile
|
||||
* @covers Twig_Node_Expression_Binary_Or::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Binary_SubTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Sub::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -24,16 +21,6 @@ class Twig_Tests_Node_Expression_Binary_SubTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($right, $node->getNode('right'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Binary_Sub::compile
|
||||
* @covers Twig_Node_Expression_Binary_Sub::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$left = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_ConditionalTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Conditional::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr1 = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -26,15 +23,6 @@ class Twig_Tests_Node_Expression_ConditionalTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($expr3, $node->getNode('expr3'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Conditional::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_ConstantTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Constant::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$node = new Twig_Node_Expression_Constant('foo', 1);
|
||||
@@ -21,15 +18,6 @@ class Twig_Tests_Node_Expression_ConstantTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('value'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Constant::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_FilterTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Filter::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant('foo', 1);
|
||||
@@ -26,15 +23,6 @@ class Twig_Tests_Node_Expression_FilterTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($args, $node->getNode('arguments'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Filter::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_FunctionTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Function::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$name = 'function';
|
||||
@@ -24,15 +21,6 @@ class Twig_Tests_Node_Expression_FunctionTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($args, $node->getNode('arguments'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Function::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$environment = new Twig_Environment();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_GetAttrTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_GetAttr::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Name('foo', 1);
|
||||
@@ -29,15 +26,6 @@ class Twig_Tests_Node_Expression_GetAttrTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals(Twig_Template::ARRAY_CALL, $node->getAttribute('type'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_GetAttr::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_NameTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Name::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$node = new Twig_Node_Expression_Name('foo', 1);
|
||||
@@ -21,15 +18,6 @@ class Twig_Tests_Node_Expression_NameTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Name::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$node = new Twig_Node_Expression_Name('foo', 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_ParentTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Parent::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$node = new Twig_Node_Expression_Parent('foo', 1);
|
||||
@@ -21,15 +18,6 @@ class Twig_Tests_Node_Expression_ParentTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Parent::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_TestTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Test::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant('foo', 1);
|
||||
@@ -26,15 +23,6 @@ class Twig_Tests_Node_Expression_TestTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($name, $node->getAttribute('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Test::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Unary_NegTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Unary_Neg::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -22,16 +19,6 @@ class Twig_Tests_Node_Expression_Unary_NegTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($expr, $node->getNode('node'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Unary_Neg::compile
|
||||
* @covers Twig_Node_Expression_Unary_Neg::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$node = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Unary_NotTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Unary_Not::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -22,16 +19,6 @@ class Twig_Tests_Node_Expression_Unary_NotTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($expr, $node->getNode('node'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Unary_Not::compile
|
||||
* @covers Twig_Node_Expression_Unary_Not::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$node = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_Expression_Unary_PosTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Unary_Pos::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant(1, 1);
|
||||
@@ -22,16 +19,6 @@ class Twig_Tests_Node_Expression_Unary_PosTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($expr, $node->getNode('node'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Expression_Unary_Pos::compile
|
||||
* @covers Twig_Node_Expression_Unary_Pos::operator
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$node = new Twig_Node_Expression_Constant(1, 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_ForTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_For::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$keyTarget = new Twig_Node_Expression_AssignName('key', 1);
|
||||
@@ -39,15 +36,6 @@ class Twig_Tests_Node_ForTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($else, $node->getNode('else'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_For::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_IfTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_If::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$t = new Twig_Node(array(
|
||||
@@ -31,15 +28,6 @@ class Twig_Tests_Node_IfTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($else, $node->getNode('else'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_If::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_ImportTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Import::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$macro = new Twig_Node_Expression_Constant('foo.twig', 1);
|
||||
@@ -24,15 +21,6 @@ class Twig_Tests_Node_ImportTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($var, $node->getNode('var'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Import::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_IncludeTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Include::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant('foo.twig', 1);
|
||||
@@ -29,15 +26,6 @@ class Twig_Tests_Node_IncludeTest extends Twig_Test_NodeTestCase
|
||||
$this->assertTrue($node->getAttribute('only'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Include::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_MacroTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Macro::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$body = new Twig_Node_Text('foo', 1);
|
||||
@@ -25,15 +22,6 @@ class Twig_Tests_Node_MacroTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Macro::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$body = new Twig_Node_Text('foo', 1);
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_ModuleTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Module::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$body = new Twig_Node_Text('foo', 1);
|
||||
@@ -31,22 +28,6 @@ class Twig_Tests_Node_ModuleTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($filename, $node->getAttribute('filename'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Module::compile
|
||||
* @covers Twig_Node_Module::compileTemplate
|
||||
* @covers Twig_Node_Module::compileMacros
|
||||
* @covers Twig_Node_Module::compileClassHeader
|
||||
* @covers Twig_Node_Module::compileDisplayHeader
|
||||
* @covers Twig_Node_Module::compileDisplayBody
|
||||
* @covers Twig_Node_Module::compileDisplayFooter
|
||||
* @covers Twig_Node_Module::compileClassFooter
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$twig = new Twig_Environment(new Twig_Loader_String());
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_PrintTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Print::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$expr = new Twig_Node_Expression_Constant('foo', 1);
|
||||
@@ -22,15 +19,6 @@ class Twig_Tests_Node_PrintTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($expr, $node->getNode('expr'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Print::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_SandboxTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Sandbox::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$body = new Twig_Node_Text('foo', 1);
|
||||
@@ -22,15 +19,6 @@ class Twig_Tests_Node_SandboxTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($body, $node->getNode('body'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Sandbox::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_SandboxedModuleTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_SandboxedModule::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$body = new Twig_Node_Text('foo', 1);
|
||||
@@ -32,17 +29,6 @@ class Twig_Tests_Node_SandboxedModuleTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($filename, $node->getAttribute('filename'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_SandboxedModule::compile
|
||||
* @covers Twig_Node_SandboxedModule::compileDisplayBody
|
||||
* @covers Twig_Node_SandboxedModule::compileDisplayFooter
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$twig = new Twig_Environment(new Twig_Loader_String());
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_SandboxedPrintTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_SandboxedPrint::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$node = new Twig_Node_SandboxedPrint($expr = new Twig_Node_Expression_Constant('foo', 1), 1);
|
||||
@@ -21,15 +18,6 @@ class Twig_Tests_Node_SandboxedPrintTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($expr, $node->getNode('expr'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_SandboxedPrint::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_SetTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Set::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$names = new Twig_Node(array(new Twig_Node_Expression_AssignName('foo', 1)), array(), 1);
|
||||
@@ -25,15 +22,6 @@ class Twig_Tests_Node_SetTest extends Twig_Test_NodeTestCase
|
||||
$this->assertFalse($node->getAttribute('capture'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Set::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_SpacelessTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Spaceless::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$body = new Twig_Node(array(new Twig_Node_Text('<div> <div> foo </div> </div>', 1)));
|
||||
@@ -22,15 +19,6 @@ class Twig_Tests_Node_SpacelessTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals($body, $node->getNode('body'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Spaceless::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$body = new Twig_Node(array(new Twig_Node_Text('<div> <div> foo </div> </div>', 1)));
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
class Twig_Tests_Node_TextTest extends Twig_Test_NodeTestCase
|
||||
{
|
||||
/**
|
||||
* @covers Twig_Node_Text::__construct
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
$node = new Twig_Node_Text('foo', 1);
|
||||
@@ -21,15 +18,6 @@ class Twig_Tests_Node_TextTest extends Twig_Test_NodeTestCase
|
||||
$this->assertEquals('foo', $node->getAttribute('data'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Twig_Node_Text::compile
|
||||
* @dataProvider getTests
|
||||
*/
|
||||
public function testCompile($node, $source, $environment = null)
|
||||
{
|
||||
parent::testCompile($node, $source, $environment);
|
||||
}
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$tests = array();
|
||||
|
||||
Reference in New Issue
Block a user