minor #2448 Wrong stdClass class name generates warning (chrisCheeseBurgames)

This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #2448).

Discussion
----------

Wrong stdClass class name generates warning

Commits
-------

38987c93 Wrong stdClass class name generates warning
This commit is contained in:
Fabien Potencier
2017-04-18 07:54:16 -06:00
@@ -18,7 +18,7 @@ class Twig_Tests_ContainerRuntimeLoaderTest extends PHPUnit_Framework_TestCase
{
$container = $this->getMockBuilder('Psr\Container\ContainerInterface')->getMock();
$container->expects($this->once())->method('has')->with('stdClass')->willReturn(true);
$container->expects($this->once())->method('get')->with('stdClass')->willReturn(new Stdclass());
$container->expects($this->once())->method('get')->with('stdClass')->willReturn(new stdClass());
$loader = new Twig_ContainerRuntimeLoader($container);