Skip to content

Commit 2dcee53

Browse files
committed
made Symfony compatible with both Twig 1.x and 2.x
1 parent ee73329 commit 2dcee53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Fragment/ContainerAwareHIncludeFragmentRendererTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testRender()
2222
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
2323
$container->expects($this->once())
2424
->method('get')
25-
->will($this->returnValue($this->getMock('\Twig_Environment')))
25+
->will($this->returnValue($this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock()))
2626
;
2727
$renderer = new ContainerAwareHIncludeFragmentRenderer($container);
2828
$renderer->render('/', Request::create('/'));

0 commit comments

Comments
 (0)