assertEquals($body, $node->getNode('body')); $this->assertTrue($node->getAttribute('value')); } public function getTests() { $body = new Node([new TextNode('foo', 1)]); $node = new AutoEscapeNode(true, $body, 1); $displayStmt = $this->getEchoOrYield(); return [ [$node, "// line 1\n$displayStmt \"foo\";"], ]; } }