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