removed usage of getmockBuilder() when not needed

This commit is contained in:
Fabien Potencier
2019-08-08 11:59:51 +02:00
parent 5aae9ba07a
commit 5861a539e4
20 changed files with 108 additions and 108 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class ModuleTest extends NodeTestCase
public function getTests()
{
$twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock());
$twig = new Environment($this->createMock('\Twig\Loader\LoaderInterface'));
$tests = [];
@@ -201,7 +201,7 @@ EOF
2
);
$twig = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), ['debug' => true]);
$twig = new Environment($this->createMock('\Twig\Loader\LoaderInterface'), ['debug' => true]);
$node = new ModuleNode($body, $extends, $blocks, $macros, $traits, new Node([]), $source);
$tests[] = [$node, <<<EOF
<?php