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