mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
add dummy files to keep folder in reprository
This commit is contained in:
@@ -117,6 +117,7 @@ class PHPUnit_Smarty extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUpSmarty($dir = null)
|
||||
{
|
||||
static $s_dir;
|
||||
// set up current working directory
|
||||
chdir($dir);
|
||||
self::$cwd = getcwd();
|
||||
@@ -129,8 +130,13 @@ class PHPUnit_Smarty extends PHPUnit_Framework_TestCase
|
||||
mkdir($dir . '/configs');
|
||||
}
|
||||
if (individualFolders != 'true') {
|
||||
if (!isset($s_dir[$dir])) {
|
||||
$this->cleanDir($dir . '/templates_c');
|
||||
file_put_contents($dir . '/templates_c/dummy.txt', ' ');
|
||||
$this->cleanDir($dir . '/cache');
|
||||
file_put_contents($dir . '/cache/dummy.txt', ' ');
|
||||
$s_dir[$dir] = true;
|
||||
}
|
||||
$dir = __DIR__;
|
||||
}
|
||||
if (!is_dir($dir . '/templates_c')) {
|
||||
|
1
tests/UnitTests/A_Core/AutoEscape/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/AutoEscape/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/AutoEscape/templates_c/dummy.txt
Normal file
1
tests/UnitTests/A_Core/AutoEscape/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/Filter/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/Filter/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/Filter/templates_c/dummy.txt
Normal file
1
tests/UnitTests/A_Core/Filter/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/GetterSetter/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/GetterSetter/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/LoadPlugin/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/LoadPlugin/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/LoadPlugin/templates_c/dummy.txt
Normal file
1
tests/UnitTests/A_Core/LoadPlugin/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/MuteExpectedErrors/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/MuteExpectedErrors/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/PluginTests/Shared/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/PluginTests/Shared/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/PluginTests/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/PluginTests/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/PluginTests/templates_c/dummy.txt
Normal file
1
tests/UnitTests/A_Core/PluginTests/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/SmartyBC/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/A_Core/SmartyBC/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/A_Core/SmartyBC/templates_c/dummy.txt
Normal file
1
tests/UnitTests/A_Core/SmartyBC/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/CacheModify/ModifiedSince/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/CacheModify/ModifiedSince/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/CacheResourceTests/File/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/CacheResourceTests/File/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/Compiler/CompilerPlugin/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/Compiler/CompilerPlugin/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/Compiler/Delimiter/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/Compiler/Delimiter/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/Compiler/Delimiter/templates_c/dummy.txt
Normal file
1
tests/UnitTests/Compiler/Delimiter/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ConfigFileTests/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ConfigFileTests/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ConfigFileTests/templates_c/dummy.txt
Normal file
1
tests/UnitTests/ConfigFileTests/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Custom/Ambiguous/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/Custom/Ambiguous/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Custom/DemoPluginExtendsAll/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/Custom/DemoPluginExtendsAll/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/DefaultHandler/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/DefaultHandler/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Eval/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/Eval/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Eval/templates_c/dummy.txt
Normal file
1
tests/UnitTests/ResourceTests/Eval/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Extends/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/Extends/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1,30 @@
|
||||
<?php /* Smarty version 3.1.28-dev/48, created on 2015-08-23 18:25:58
|
||||
compiled from "C:\wamp\www\Smarty3.1-test-release\vendor\smarty\smarty-phpunit\UnitTests\ResourceTests\File\templates\relativity\relativity.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:184755d9f416299867_60310907%%*/
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.28-dev/48',
|
||||
'unifunc' => 'content_55d9f41629daa8_36854466',
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'431c052c4f3ffcf0b29a0853bdf3032cafec4a8c' =>
|
||||
array (
|
||||
0 => 'C:\\wamp\\www\\Smarty3.1-test-release\\vendor\\smarty\\smarty-phpunit\\UnitTests\\ResourceTests\\File\\templates\\relativity\\relativity.tpl',
|
||||
1 => 1431983334,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_55d9f41629daa8_36854466')) {
|
||||
function content_55d9f41629daa8_36854466 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->compiled->nocache_hash = '184755d9f416299867_60310907';
|
||||
?>
|
||||
relativity<?php }
|
||||
}
|
||||
?>
|
1
tests/UnitTests/ResourceTests/FileIncludePath/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/FileIncludePath/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/FileIndexed/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/FileIndexed/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Php/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/Php/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Php/templates_c/dummy.txt
Normal file
1
tests/UnitTests/ResourceTests/Php/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Registered/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/Registered/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/Stream/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/Stream/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/ResourceTests/String/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/ResourceTests/String/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SecurityTests/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SecurityTests/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SecurityTests/templates_c/dummy.txt
Normal file
1
tests/UnitTests/SecurityTests/templates_c/dummy.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/Append/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/Append/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/AppendByRef/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/AppendByRef/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/Assign/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/Assign/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/AssignByRef/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/AssignByRef/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/AssignGlobal/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/AssignGlobal/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/ClearAllAssign/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/ClearAllAssign/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/ClearAssign/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/ClearAssign/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/ClearCompiledTemplate/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/ClearCompiledTemplate/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/GetTemplateVars/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/GetTemplateVars/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/RegisterBlock/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/RegisterBlock/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/RegisterCompiler/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/RegisterCompiler/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/RegisterFunction/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/RegisterFunction/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/RegisterModifier/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/RegisterModifier/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/RegisterObject/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/RegisterObject/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/SmartyMethodsTests/TemplateExist/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/SmartyMethodsTests/TemplateExist/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/Comments/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/Comments/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/Spacing/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/Spacing/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/StaticClass/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/StaticClass/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/TagTests/Append/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/TagTests/Append/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/TagTests/Assign/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/TagTests/Assign/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/TagTests/BlockPlugin/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/TagTests/BlockPlugin/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/TagTests/BockExtend/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/TagTests/BockExtend/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1,44 @@
|
||||
<?php /* Smarty version 3.1.28-dev/48, created on 2015-08-23 18:26:37
|
||||
compiled from "C:\wamp\www\Smarty3.1-test-release\vendor\smarty\smarty-phpunit\UnitTests\TemplateSource\TagTests\BockExtend\templates\021_grandchild.tpl" */ ?>
|
||||
<?php
|
||||
/*%%SmartyHeaderCode:728455d9f43d295485_19027780%%*/
|
||||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||||
'has_nocache_code' => false,
|
||||
'version' => '3.1.28-dev/48',
|
||||
'unifunc' => 'content_55d9f43d2c6952_85477004',
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'e910375493c61ffa81f68c2db217d88c56a35dd8' =>
|
||||
array (
|
||||
0 => 'C:\\wamp\\www\\Smarty3.1-test-release\\vendor\\smarty\\smarty-phpunit\\UnitTests\\TemplateSource\\TagTests\\BockExtend\\templates\\021_grandchild.tpl',
|
||||
1 => 1440347192,
|
||||
2 => 'file',
|
||||
),
|
||||
'9dadb76e561d52673b400f87b15471be331b20cf' =>
|
||||
array (
|
||||
0 => 'C:\\wamp\\www\\Smarty3.1-test-release\\vendor\\smarty\\smarty-phpunit\\UnitTests\\TemplateSource\\TagTests\\BockExtend\\templates\\021_child.tpl',
|
||||
1 => 1440347195,
|
||||
2 => 'file',
|
||||
),
|
||||
'7c23e4563ca20b72f2b45ce0c4f3ec929d8084bc' =>
|
||||
array (
|
||||
0 => 'C:\\wamp\\www\\Smarty3.1-test-release\\vendor\\smarty\\smarty-phpunit\\UnitTests\\TemplateSource\\TagTests\\BockExtend\\templates\\021_parent.tpl',
|
||||
1 => 1440347197,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false);
|
||||
/*/%%SmartyHeaderCode%%*/
|
||||
if ($_valid && !is_callable('content_55d9f43d2c6952_85477004')) {
|
||||
function content_55d9f43d2c6952_85477004 ($_smarty_tpl) {
|
||||
|
||||
$_smarty_tpl->compiled->nocache_hash = '728455d9f43d295485_19027780';
|
||||
$_smarty_tpl->compiled->nocache_hash = '728455d9f43d295485_19027780';
|
||||
?>
|
||||
Grandchild Page Title
|
||||
<?php }
|
||||
}
|
||||
?>
|
1
tests/UnitTests/TemplateSource/TagTests/Capture/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/TagTests/Capture/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
1
tests/UnitTests/TemplateSource/TagTests/CompilerPlugin/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/TagTests/CompilerPlugin/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user