mirror of
https://github.com/smarty-php/smarty.git
synced 2026-07-11 02:40:49 +02:00
converted 3 public properties on Template into getters/setters. unified Template creation code. Provided a getter/setter for the has_nocache_code property. Removed the useless DataObject class. Fixed a few tests. Removed the variable-allow-php-templates property from the docs.
This commit is contained in:
@@ -110,7 +110,7 @@ class StringResourceTest extends PHPUnit_Smarty
|
||||
public function testGetCompiledFilepath()
|
||||
{
|
||||
$tpl = $this->smarty->createTemplate('string:hello world');
|
||||
$this->assertEquals($this->buildCompiledPath($tpl, false, false, null, 'hello world', 'string', $this->smarty->getTemplateDir(0)), $tpl->compiled->filepath);
|
||||
$this->assertEquals($this->buildCompiledPath($tpl, false, false, null, 'hello world', 'string', $this->smarty->getTemplateDir(0)), $tpl->getCompiled()->filepath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,7 +119,7 @@ class StringResourceTest extends PHPUnit_Smarty
|
||||
public function testGetCompiledTimestamp()
|
||||
{
|
||||
$tpl = $this->smarty->createTemplate('string:hello world');
|
||||
$this->assertFalse($tpl->compiled->getTimeStamp());
|
||||
$this->assertFalse($tpl->getCompiled()->getTimeStamp());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -137,7 +137,7 @@ class StringResourceTest extends PHPUnit_Smarty
|
||||
public function testGetCachedTimestamp()
|
||||
{
|
||||
$tpl = $this->smarty->createTemplate('string:hello world');
|
||||
$this->assertFalse($tpl->cached->timestamp);
|
||||
$this->assertFalse($tpl->getCached()->timestamp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user