Skip to content

Commit

Permalink
fix test twig cache
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Mar 29, 2016
1 parent 6578499 commit 105d7a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/PSX/Framework/Template/Engine/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Twig extends EngineAbstract
protected $cache;
protected $debug;

public function __construct($cache = true, $debug = false)
public function __construct($cache = false, $debug = false)
{
$this->cache = $cache;
$this->debug = $debug;
Expand Down
5 changes: 4 additions & 1 deletion library/PSX/Framework/Tests/Template/Engine/TwigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ protected function setUp()

public function testTransform()
{
$template = new Twig(Environment::getService('config'));
$template = new Twig(
Environment::getService('config')->get('psx_path_cache'),
Environment::getService('config')->get('psx_debug')
);

$template->setDir(__DIR__ . '/../twig');
$template->set('foo.twig.html');
Expand Down

0 comments on commit 105d7a4

Please sign in to comment.