assertEquals($body, $node->getNode('body')); $this->assertEquals('foo', $node->getAttribute('name')); } public function getTests() { $tests = []; $tests[] = [new BlockNode('foo', new TextNode('foo', 1), 1), <<macros; yield "foo"; return; yield ''; } EOF , new Environment(new ArrayLoader()), ]; return $tests; } }