mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Fixed unit tests for removed deprecated code in previous commit
This commit is contained in:
@@ -15,14 +15,10 @@ class Smarty_Resource_Db extends Smarty_Resource_Recompiled {
|
||||
public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) {
|
||||
$source->filepath = 'db:';
|
||||
$source->uid = sha1($source->resource);
|
||||
$source->timestamp = 0;
|
||||
$source->timestamp = 1000000000;
|
||||
$source->exists = true;
|
||||
}
|
||||
|
||||
public function populateTimestamp(Smarty_Template_Source $source): int {
|
||||
return 1000000000;
|
||||
}
|
||||
|
||||
public function getContent(Smarty_Template_Source $source) {
|
||||
return '{$x="hello world"}{$x}';
|
||||
}
|
||||
|
Reference in New Issue
Block a user