You are here

public function Twig_Tests_Node_SpacelessTest::testConstructor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

Twig_Tests_Node_SpacelessTest

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