Skip to content

Commit f8ba338

Browse files
Merge branch '2.8' into 3.2
* 2.8: [EventDispatcher] Fix ContainerAwareEventDispatcher::hasListeners(null) Use namespaced Twig
2 parents b7fe49a + 700a51c commit f8ba338

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Tests/Controller/ControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function testdenyAccessUnlessGranted()
367367

368368
public function testRenderViewTwig()
369369
{
370-
$twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
370+
$twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
371371
$twig->expects($this->once())->method('render')->willReturn('bar');
372372

373373
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
@@ -383,7 +383,7 @@ public function testRenderViewTwig()
383383

384384
public function testRenderTwig()
385385
{
386-
$twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
386+
$twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
387387
$twig->expects($this->once())->method('render')->willReturn('bar');
388388

389389
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
@@ -399,7 +399,7 @@ public function testRenderTwig()
399399

400400
public function testStreamTwig()
401401
{
402-
$twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
402+
$twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
403403

404404
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
405405
$container->expects($this->at(0))->method('has')->will($this->returnValue(false));

Tests/Controller/TemplateControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TemplateControllerTest extends TestCase
2222
{
2323
public function testTwig()
2424
{
25-
$twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
25+
$twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
2626
$twig->expects($this->once())->method('render')->willReturn('bar');
2727

2828
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"symfony/property-info": "~3.1",
5555
"doctrine/annotations": "~1.0",
5656
"phpdocumentor/reflection-docblock": "^3.0",
57-
"twig/twig": "~1.26|~2.0",
57+
"twig/twig": "~1.34|~2.4",
5858
"sensio/framework-extra-bundle": "^3.0.2"
5959
},
6060
"conflict": {

0 commit comments

Comments
 (0)