$this->assertEquals($valueTarget, $node->getNode('value_target'));
$this->assertEquals($seq, $node->getNode('seq'));
$this->assertTrue($node->getAttribute('ifexpr'));
- $this->assertInstanceOf('Twig_Node_If', $node->getNode('body'));
+ $this->assertEquals('Twig_Node_If', get_class($node->getNode('body')));
$this->assertEquals($body, $node->getNode('body')->getNode('tests')->getNode(1)->getNode(0));
$this->assertEquals(null, $node->getNode('else'));
$node = $stream->getNode('body')->getNode(0);
- $this->assertInstanceOf('Twig_Node_Expression_BlockReference', $node);
+ $this->assertEquals('Twig_Node_Expression_BlockReference', get_class($node));
$this->assertTrue($node->getAttribute('output'));
}
$node = $stream->getNode('blocks')->getNode('content')->getNode(0)->getNode('body');
- $this->assertInstanceOf('Twig_Node_Expression_Parent', $node);
+ $this->assertEquals('Twig_Node_Expression_Parent', get_class($node));
$this->assertTrue($node->getAttribute('output'));
}
$node = $stream->getNode('body')->getNode(0)->getNode(1);
- $this->assertInstanceOf('Twig_Node_Expression_BlockReference', $node);
+ $this->assertEquals('Twig_Node_Expression_BlockReference', get_class($node));
$this->assertTrue($node->getAttribute('output'));
}