assertEquals('foo', $node->getAttribute('data')); } public static function provideTests(): iterable { $tests = []; $tests[] = [new TextNode('foo', 1), "// line 1\nyield \"foo\";"]; return $tests; } }