mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user