Commit 15420a61 authored by Fabien Potencier's avatar Fabien Potencier

minor #1602 Fix PHPUnit warning (fabpot)

This PR was merged into the 2.2.x-dev branch.

Discussion
----------

Fix PHPUnit warning

Commits
-------

db01e507 fixed PHPUnit warning
parents f735d087 db01e507
......@@ -53,7 +53,9 @@ class TwigServiceProviderTest extends TestCase
'twig.templates' => ['foo' => 'foo'],
]);
$loader = $this->getMockBuilder('\Twig_LoaderInterface')->getMock();
$loader->expects($this->never())->method('getSourceContext');
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