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 = null === \$this->macroImportSource ? \$this->macros : \$this->rebindMacroImports(\$this->macroImportSource->macros); yield "foo"; yield from []; } EOF, new Environment(new ArrayLoader()), ]; return $tests; } }