summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-29 19:38:28 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-29 19:38:28 +0100
commit577c052aff605697cd173967751828a181cca4ad (patch)
treebfb3dd8af8cb0655c52b81be206134e8fe6a2cd5 /tests
parent15e6740e12df3fa53c4b0f3e85e3d91590f0ef60 (diff)
Twig update to 3.0.0 and Renderer type hinting
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Renderer/TwigServiceProviderTest.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/Unit/Renderer/TwigServiceProviderTest.php b/tests/Unit/Renderer/TwigServiceProviderTest.php
index 7696d28f..3336e015 100644
--- a/tests/Unit/Renderer/TwigServiceProviderTest.php
+++ b/tests/Unit/Renderer/TwigServiceProviderTest.php
@@ -12,6 +12,7 @@ use ReflectionClass as Reflection;
use ReflectionException;
use stdClass;
use Twig\Environment as Twig;
+use Twig\Extension\AbstractExtension;
use Twig\Extension\CoreExtension as TwigCore;
use Twig\Extension\ExtensionInterface as ExtensionInterface;
use Twig\Loader\LoaderInterface as TwigLoaderInterface;
@@ -103,9 +104,15 @@ class TwigServiceProviderTest extends ServiceProviderTest
/** @var Config|MockObject $config */
$config = $this->createMock(Config::class);
/** @var TwigCore|MockObject $twigCore */
- $twigCore = $this->getMockBuilder(stdClass::class)
- ->addMethods(['setTimezone'])
- ->getMock();
+ $twigCore = $this->getMockForAbstractClass(
+ AbstractExtension::class,
+ [],
+ '',
+ true,
+ true,
+ true,
+ ['setTimezone']
+ );
$app = $this->getApp(['make', 'instance', 'tag', 'get']);