public function Twig_Tests_Node_SpacelessTest::getTests in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/Node/SpacelessTest.php \Twig_Tests_Node_SpacelessTest::getTests()
Overrides Twig_Test_NodeTestCase::getTests
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ SpacelessTest.php, line 22
Class
Code
public function getTests() {
$body = new Twig_Node(array(
new Twig_Node_Text('<div> <div> foo </div> </div>', 1),
));
$node = new Twig_Node_Spaceless($body, 1);
return array(
array(
$node,
<<<EOF
// line 1
ob_start();
echo "<div> <div> foo </div> </div>";
echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
EOF
,
),
);
}