public function Twig_Tests_Node_SpacelessTest::testConstructor in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/Node/SpacelessTest.php \Twig_Tests_Node_SpacelessTest::testConstructor()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ SpacelessTest.php, line 14
Class
Code
public function testConstructor() {
$body = new Twig_Node(array(
new Twig_Node_Text('<div> <div> foo </div> </div>', 1),
));
$node = new Twig_Node_Spaceless($body, 1);
$this
->assertEquals($body, $node
->getNode('body'));
}