Code Duplication    Length = 10-10 lines in 2 locations

Tests/Twig/Node/ContainerNodeTest.php 1 location

@@ 26-35 (lines=10) @@
23
24
class ContainerNodeTest extends NodeTestCase
25
{
26
    public function testConstructor()
27
    {
28
        $name = new Node([new ConstantExpression('container_name', 1)]);
29
        $parameters = new ArrayExpression([], 1);
30
        $body = new TextNode('', 1);
31
        $node = new ContainerNode($name, $parameters, $body, 1, 'gimme');
32
        $this->assertEquals($name, $node->getNode('name'));
33
        $this->assertEquals($parameters, $node->getNode('parameters'));
34
        $this->assertEquals($body, $node->getNode('body'));
35
    }
36
37
    public function getTests()
38
    {

Tests/Twig/Node/GimmeNodeTest.php 1 location

@@ 36-45 (lines=10) @@
33
34
class GimmeNodeTest extends NodeTestCase
35
{
36
    public function testConstructor()
37
    {
38
        $annotation = new Node([new AssignNameExpression('article', 1)]);
39
        $parameters = new ArrayExpression([], 1);
40
        $body = new TextNode('', 1);
41
        $node = new GimmeNode($annotation, $parameters, null, $body, 1, 'gimme');
42
        $this->assertEquals($annotation, $node->getNode('annotation'));
43
        $this->assertEquals($parameters, $node->getNode('parameters'));
44
        $this->assertEquals($body, $node->getNode('body'));
45
    }
46
47
    public function getTests()
48
    {