assertEquals($body, $node->getNode('body')); $this->assertTrue($node->getAttribute('value')); } public static function provideTests(): iterable { $body = new Nodes([new TextNode('foo', 1)]); $node = new AutoEscapeNode(true, $body, 1); return [ [$node, "// line 1\nyield \"foo\";"], ]; } }