mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 17:34:26 +02:00
Removed unneeded files and replace dummy.txt with .gitignore files
This commit is contained in:
22
tests/.gitattributes
vendored
22
tests/.gitattributes
vendored
@@ -1,22 +0,0 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
*.sln merge=union
|
||||
*.csproj merge=union
|
||||
*.vbproj merge=union
|
||||
*.fsproj merge=union
|
||||
*.dbproj merge=union
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
3
tests/.gitignore
vendored
3
tests/.gitignore
vendored
@@ -8,5 +8,4 @@
|
||||
testdox.html
|
||||
TestResults.tap
|
||||
TestResults.txt
|
||||
.templates_c/*.php
|
||||
.cache/*.php
|
||||
|
||||
|
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Smarty PHPUnit tests.
|
||||
*
|
||||
*/
|
||||
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(dirname(__FILE__), FilesystemIterator::SKIP_DOTS)) as $path)
|
||||
{
|
||||
$p = $path->getPathname();
|
||||
if ((strpos($p, '\templates_c') !== false) || (strpos($p, '\cache') !== false) ||
|
||||
(strpos($p, '\templates_tmp') !== false)) {
|
||||
$path2 = $path;
|
||||
$pp = $path->getPath();
|
||||
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path->getPath(). '\\', FilesystemIterator::SKIP_DOTS),
|
||||
RecursiveIteratorIterator::CHILD_FIRST) as $path2) {
|
||||
$p2 = $path2->getPathname();
|
||||
if ((strpos($p2, '\templates_c\\') !== false) || (strpos($p2, '\cache\\') !== false) ||
|
||||
(strpos($p2, '\templates_tmp\\') !== false)) {
|
||||
if ($path2->isDir() && !$path2->isLink()) {
|
||||
rmdir($p2);
|
||||
} else {
|
||||
unlink($p2);
|
||||
}
|
||||
}
|
||||
}
|
||||
$name = $pp. '\dummy.txt';
|
||||
|
||||
file_put_contents($name,'dummy');
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,15 +0,0 @@
|
||||
# Smarty 3 template engine
|
||||
## PHPUnit repository
|
||||
|
||||
For installing the PHPUnit test by composer use the following:
|
||||
|
||||
"require-dev": {
|
||||
"smarty/smarty-phpunit": "3.1.21"
|
||||
}
|
||||
|
||||
Replace 3.1.21 with the installed Smarty version number.
|
||||
|
||||
|
||||
The tests for the custom template and cache resources Mysql, Memcache and APC can
|
||||
be enabled in config.php.
|
||||
|
2
tests/UnitTests/A_0/PathNormalization/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_0/PathNormalization/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_0/PathNormalization/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_0/PathNormalization/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
@@ -199,7 +199,7 @@ class ProtectedFolderVarsTest extends PHPUnit_Smarty
|
||||
{
|
||||
$s = new FolderT();
|
||||
$d = $s->getCacheDir();
|
||||
$this->assertEquals(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'cach' . DIRECTORY_SEPARATOR, $d);
|
||||
$this->assertEquals(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR, $d);
|
||||
}
|
||||
|
||||
public function testCacheDirDirectRelativeExtends2()
|
||||
@@ -219,7 +219,7 @@ class FolderT extends Smarty
|
||||
|
||||
protected $plugins_dir = './plug/';
|
||||
|
||||
protected $cache_dir = './cach/';
|
||||
protected $cache_dir = './cache/';
|
||||
|
||||
protected $config_dir = array('./conf/');
|
||||
|
||||
|
2
tests/UnitTests/A_1/ProtectedFolderVars/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_1/ProtectedFolderVars/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_1/ProtectedFolderVars/comp/.gitignore
vendored
Normal file
2
tests/UnitTests/A_1/ProtectedFolderVars/comp/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_2/UndefinedTemplateVar/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_2/UndefinedTemplateVar/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_2/UndefinedTemplateVar/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_2/UndefinedTemplateVar/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/AutoEscape/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/AutoEscape/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/AutoEscape/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/AutoEscape/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/Filter/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/Filter/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/Filter/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/Filter/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
dummy# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/GetterSetter/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/GetterSetter/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/GetterSetter/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/GetterSetter/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/LoadPlugin/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/LoadPlugin/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/LoadPlugin/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/LoadPlugin/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/MuteExpectedErrors/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/MuteExpectedErrors/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/MuteExpectedErrors/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/MuteExpectedErrors/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/PluginTests/Shared/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/PluginTests/Shared/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/PluginTests/Shared/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/PluginTests/Shared/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/PluginTests/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/PluginTests/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/PluginTests/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/PluginTests/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/SmartyBC/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/SmartyBC/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/A_Core/SmartyBC/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/A_Core/SmartyBC/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheModify/ModifiedSince/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheModify/ModifiedSince/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheModify/ModifiedSince/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheModify/ModifiedSince/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheResourceTests/File/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheResourceTests/File/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheResourceTests/File/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheResourceTests/File/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheResourceTests/Memcache/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheResourceTests/Memcache/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheResourceTests/Mysql/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheResourceTests/Mysql/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheResourceTests/Mysql/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheResourceTests/Mysql/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/CacheResourceTests/Registered/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/CacheResourceTests/Registered/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
@@ -1 +0,0 @@
|
||||
dummy
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/Compiler/CompilerPlugin/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/Compiler/CompilerPlugin/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/Compiler/CompilerPlugin/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/Compiler/CompilerPlugin/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/Compiler/Delimiter/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/Compiler/Delimiter/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/Compiler/Delimiter/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/Compiler/Delimiter/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ConfigFileTests/defaultHandler/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/ConfigFileTests/defaultHandler/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ConfigFileTests/file/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/ConfigFileTests/file/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/Custom/Ambiguous/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/Custom/Ambiguous/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/Custom/Ambiguous/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/Custom/Ambiguous/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/Custom/DemoPluginExtendsAll/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/Custom/DemoPluginExtendsAll/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/Custom/DemoPluginExtendsAll/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/Custom/DemoPluginExtendsAll/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/Custom/DemoPluginMysql/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/Custom/DemoPluginMysql/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/Custom/DemoPluginMysql/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/Custom/DemoPluginMysql/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/DefaultHandler/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/DefaultHandler/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/DefaultHandler/templates_c/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/DefaultHandler/templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
@@ -1 +0,0 @@
|
||||
dummy
|
2
tests/UnitTests/ResourceTests/Eval/cache/.gitignore
vendored
Normal file
2
tests/UnitTests/ResourceTests/Eval/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore anything in here, but keep this directory
|
||||
*
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user