Commit db01e507 authored by Fabien Potencier's avatar Fabien Potencier

fixed PHPUnit warning

parent 52d38c55
......@@ -53,7 +53,9 @@ class TwigServiceProviderTest extends TestCase
'twig.templates' => ['foo' => 'foo'],
]);
$loader = $this->getMockBuilder('\Twig_LoaderInterface')->getMock();
if (method_exists('\Twig_LoaderInterface', 'getSourceContext')) {
$loader->expects($this->never())->method('getSourceContext');
}
$app['twig.loader.filesystem'] = function ($app) use ($loader) {
return $loader;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment