mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-26 22:36:41 +00:00
Merge branch '1.x' into 2.x
* 1.x: removed usage of getmockBuilder() when not needed
This commit is contained in:
@@ -45,7 +45,7 @@ class ModuleTest extends NodeTestCase
|
||||
|
||||
public function getTests()
|
||||
{
|
||||
$twig = new Environment($this->getMockBuilder(LoaderInterface::class)->getMock());
|
||||
$twig = new Environment($this->createMock(LoaderInterface::class));
|
||||
|
||||
$tests = [];
|
||||
|
||||
@@ -200,7 +200,7 @@ EOF
|
||||
2
|
||||
);
|
||||
|
||||
$twig = new Environment($this->getMockBuilder(LoaderInterface::class)->getMock(), ['debug' => true]);
|
||||
$twig = new Environment($this->createMock(LoaderInterface::class), ['debug' => true]);
|
||||
$node = new ModuleNode($body, $extends, $blocks, $macros, $traits, new Node([]), $source);
|
||||
$tests[] = [$node, <<<EOF
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user