$template = new Twig_TemplateTest($this->getMock('Twig_Environment'));
$template->callMacro(new Twig_Tests_TemplateWithMacros('my/template', array('date' => array(
'method' => 'getDate',
- 'default_argument_values' => array('format' => null, 'template' => null)
+ 'arguments' => array('format' => null, 'template' => null)
))), 'date', array('d', 'format' => 'H'), array('format' => 1), 1, 1);
}
$template = new Twig_TemplateTest($this->getMock('Twig_Environment'));
$template->callMacro(new Twig_Tests_TemplateWithMacros('my/template', array('date' => array(
'method' => 'getDate',
- 'default_argument_values' => array('foo' => 1, 'bar' => 2)
+ 'arguments' => array('foo' => 1, 'bar' => 2)
))), 'date', array('foo' => 2), array('foo' => 1, 'unknown' => 1), 2, 0);
}
$template = new Twig_TemplateTest($this->getMock('Twig_Environment'));
$template->callMacro(new Twig_Tests_TemplateWithMacros('my/template', array('date' => array(
'method' => 'getDate',
- 'default_argument_values' => array()
+ 'arguments' => array()
))), 'date', array(), array('unknown1' => 1, 'unknown2' => 2), 2, 0);
}
}