Fix #126: disable clearcachestats() by default in Fenom\Provider. Add method Fenom\Provider->setClearCachedStats() for enable clearcachestats()

This commit is contained in:
bzick
2015-01-02 17:43:41 +03:00
parent 7e8598ae3b
commit 4ca7ccb5e0
4 changed files with 30 additions and 17 deletions

View File

@ -96,6 +96,7 @@ class FenomTest extends \Fenom\TestCase
public function testCheckMTime()
{
$this->fenom->setOptions(Fenom::FORCE_COMPILE);
$this->fenom->getProvider()->setClearCachedStats();
$this->tpl('custom.tpl', 'Custom template');
$this->assertSame("Custom template", $this->fenom->fetch('custom.tpl', array()));
$tpl = $this->fenom->getTemplate('custom.tpl');