Skip to content

Commit 700a51c

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

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Tests/Controller/ControllerTest.php

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

162162
public function testRenderViewTwig()
163163
{
164-
$twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
164+
$twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
165165
$twig->expects($this->once())->method('render')->willReturn('bar');
166166

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

178178
public function testRenderTwig()
179179
{
180-
$twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
180+
$twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
181181
$twig->expects($this->once())->method('render')->willReturn('bar');
182182

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

194194
public function testStreamTwig()
195195
{
196-
$twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
196+
$twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
197197

198198
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
199199
$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();

Tests/Fragment/LegacyContainerAwareHIncludeFragmentRendererTest.php

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"symfony/event-dispatcher": "~2.8|~3.0.0",
2626
"symfony/finder": "^2.0.5|~3.0.0",
2727
"symfony/http-foundation": "~2.7",
28-
"symfony/http-kernel": "^2.8.18",
28+
"symfony/http-kernel": "^2.8.22",
2929
"symfony/polyfill-mbstring": "~1.0",
3030
"symfony/filesystem": "~2.3|~3.0.0",
3131
"symfony/routing": "^2.8.17",
@@ -51,7 +51,7 @@
5151
"symfony/yaml": "^2.0.5|~3.0.0",
5252
"symfony/property-info": "~2.8|~3.0.0",
5353
"phpdocumentor/reflection": "^1.0.7",
54-
"twig/twig": "~1.23|~2.0",
54+
"twig/twig": "~1.34|~2.4",
5555
"sensio/framework-extra-bundle": "^3.0.2"
5656
},
5757
"conflict": {

0 commit comments

Comments
 (0)