Skip to content

Commit b5f8ada

Browse files
committed
Allow Twig 2.0
1 parent 3fc39e5 commit b5f8ada

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"require": {
2121
"php": ">=5.3.0",
22-
"twig/twig": "~1.12"
22+
"twig/twig": "~1.12||^2.0"
2323
},
2424
"require-dev": {
2525
"phpunit/phpunit": "~4.3"

tests/TwigGenerator/Tests/Builder/BaseBuilderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ protected function initBuilder()
9898
$generator = $this->getMockBuilder('TwigGenerator\Builder\Generator')
9999
->disableOriginalConstructor()
100100
->getMock();
101+
$generator->method('getTempDir')->willReturn('/tmp');
101102

102103
$builder->setGenerator($generator);
103104
$builder->setMustOverwriteIfExists(true);

0 commit comments

Comments
 (0)