From 120518d80336efdb1641f9e61f5c2b46d13988de Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 3 Aug 2013 18:48:19 +0200 Subject: [PATCH] fixed some unit tests --- test/Twig/Tests/TemplateTest.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Twig/Tests/TemplateTest.php b/test/Twig/Tests/TemplateTest.php index 715df0b..f267b1a 100644 --- a/test/Twig/Tests/TemplateTest.php +++ b/test/Twig/Tests/TemplateTest.php @@ -383,7 +383,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase $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); } @@ -396,7 +396,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase $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); } @@ -409,7 +409,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase $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); } } -- 1.7.2.5