Removed unneeded files and replace dummy.txt with .gitignore files

This commit is contained in:
Simon Wisselink
2020-04-13 00:03:57 +02:00
parent 57d797fa1d
commit 5db1746129
559 changed files with 487 additions and 414 deletions

22
tests/.gitattributes vendored
View File

@@ -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
View File

@@ -8,5 +8,4 @@
testdox.html
TestResults.tap
TestResults.txt
.templates_c/*.php
.cache/*.php

View File

@@ -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');
}
}

View File

@@ -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.

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -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/');

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
dummy# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View File

@@ -1 +0,0 @@
dummy

View File

@@ -0,0 +1,2 @@
# Ignore anything in here, but keep this directory
*

View 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