Removed now unneeded PHPunit annotations @run(Tests)InSeparateProcess, @preserveGlobalState and @backupStaticAttributes. Made CacheResourceTestCommon abstract to prevent the base class from running tests (and always failing). Unregister a previously registered stream wrapper. Fixes a lot of tests.

This commit is contained in:
Simon Wisselink
2023-01-05 23:06:02 +01:00
parent 576bd4cc01
commit f07e342d61
154 changed files with 883 additions and 1113 deletions

View File

@@ -58,14 +58,6 @@ class PHPUnit_Smarty extends PHPUnit\Framework\TestCase
public static $pluginsdir = null;
/**
* Default blacklist
*
* @var array
*/
protected $backupStaticAttributesBlacklist = array('PHPUnit_Smarty' => array('config', 'pdo', 'init',
'testNumver', 'pluginsdir'),);
/**
* This method is called before the first test of this test class is run.
*
@@ -101,7 +93,6 @@ class PHPUnit_Smarty extends PHPUnit\Framework\TestCase
define('individualFolders', true);
}
parent::__construct($name, $data, $dataName);
$this->backupStaticAttributesBlacklist[ get_class($this) ] = array('init', 'config', 'pdo', 'testNumber');
}
/**

View File

@@ -6,9 +6,9 @@
/**
* class for path normalization tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PathNormalizationTest extends PHPUnit_Smarty
{

View File

@@ -6,9 +6,9 @@
/**
* class for path normalization tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class TemplateNormalizationTest extends PHPUnit_Smarty
{

View File

@@ -8,9 +8,9 @@ use Smarty\Smarty;
/**
* class for protected $template_dir, $compile_dir, $cache_dir, $config_dir, $plugins_dir property tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class ProtectedFolderVarsTest extends PHPUnit_Smarty
{

View File

@@ -6,7 +6,7 @@
/**
* class for protected $template_dir, $compile_dir, $cache_dir, $config_dir, $plugins_dir property tests
*
* @backupStaticAttributes enabled
*
*/
class UndefinedTemplateVarTest extends PHPUnit_Smarty
{

View File

@@ -6,9 +6,9 @@
/**
* class for 'escapeHtml' property tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class AutoEscapeTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of filter
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for filter tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class FilterTest extends PHPUnit_Smarty
{
@@ -68,9 +68,6 @@ class FilterTest extends PHPUnit_Smarty
/**
* test registered output filter not cached
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testRegisteredOutputFilter_001()
{
@@ -82,9 +79,6 @@ class FilterTest extends PHPUnit_Smarty
/**
* test registered output filter not cached 2"
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testRegisteredOutputFilter_001_2()
{
@@ -96,9 +90,6 @@ class FilterTest extends PHPUnit_Smarty
/**
* test registered output filter cached 1"
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testRegisteredOutputFilter_001_3()
{
@@ -112,9 +103,6 @@ class FilterTest extends PHPUnit_Smarty
/**
* test registered output filter cached 1"
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testRegisteredOutputFilter_001_4()
{
@@ -127,9 +115,6 @@ class FilterTest extends PHPUnit_Smarty
/**
* test registered output filter cached nocache"
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testRegisteredOutputFilter_002_1()
{
@@ -142,9 +127,6 @@ class FilterTest extends PHPUnit_Smarty
/**
* test registered output filter cached nocache"
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testRegisteredOutputFilter_002_2()
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of generic getter/setter
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for generic getter/setter tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class GetterSetterTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests deault plugin handler
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for plugin handler tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class DefaultPluginHandlerTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests for cache resource file
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for cache resource file tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class HttpModifiedSinceTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource Apc
*
* @package PHPunit
* @author Uwe Tews
*/
include_once __DIR__ . '/../Memcache/CacheResourceCustomMemcacheTest.php';
@@ -11,9 +11,9 @@ include_once __DIR__ . '/../_shared/PHPunitplugins/cacheresource.apctest.php';
/**
* class for cache resource file tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CacheResourceCustomApcTest extends CacheResourceCustomMemcacheTest
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource file
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ include_once __DIR__ . '/../_shared/CacheResourceTestCommon.php';
/**
* class for cache resource file tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CacheResourceFileTest extends CacheResourceTestCommon
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource memcache
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ include_once __DIR__ . '/../_shared/CacheResourceTestCommon.php';
/**
* class for cache resource memcache tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CacheResourceCustomMemcacheTest extends CacheResourceTestCommon
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource mysql
*
* @package PHPunit
* @author Uwe Tews
*/
if (MysqlCacheEnable == true) {
@@ -12,9 +12,9 @@ if (MysqlCacheEnable == true) {
/**
* class for cache resource file tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CacheResourceCustomMysqlTest extends CacheResourceTestCommon
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource Pdo
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -12,9 +12,9 @@ include_once __DIR__ . '/cacheresource.pdotest.php';
/**
* class for cache resource file tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CacheResourceCustomPDOTest extends CacheResourceTestCommon
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource file
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -13,7 +13,7 @@ include_once __DIR__ . '/cacheresource.pdo_gziptest.php';
/**
* class for cache resource file tests
*
* @backupStaticAttributes enabled
*
*/
class CacheResourceCustomPDOGzipTest extends CacheResourceTestCommon
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource registered
*
* @package PHPunit
* @author Uwe Tews
*/
if (MysqlCacheEnable == true) {
@@ -11,9 +11,9 @@ if (MysqlCacheEnable == true) {
/**
* class for cache resource file tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CacheResourceCustomRegisteredTest extends CacheResourceTestCommon
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for cache resource file
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Template;
/**
* class for cache resource file tests
*
* @backupStaticAttributes enabled
*
*/
class CacheResourceTestCommon extends PHPUnit_Smarty
abstract class CacheResourceTestCommon extends PHPUnit_Smarty
{
public static $touchResource = null;
@@ -403,8 +403,6 @@ class CacheResourceTestCommon extends PHPUnit_Smarty
}
/**
* Test caching
* @runInSeparateProcess
* @preserveGlobalState disabled
* @dataProvider data
* @group slow
*/
@@ -507,12 +505,7 @@ class CacheResourceTestCommon extends PHPUnit_Smarty
array(10, 4, 6, null, false, 2, 10, false, false, false, 32, 32, 32, 'lock timeout - new compiled'),
);
}
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCachingDisabled1()
{
$this->smarty->assign('test', 50);
@@ -520,12 +513,6 @@ class CacheResourceTestCommon extends PHPUnit_Smarty
$this->assertFalse($tpl->isCached(), 'isCached() status');
$this->assertEquals('cache resource test:50 compiled:50 rendered:50', $this->smarty->fetch($tpl), 'fetch()');
}
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCachingDisabled2()
{
$this->smarty->assign('test', 51);
@@ -536,8 +523,6 @@ class CacheResourceTestCommon extends PHPUnit_Smarty
/**
* Test caching
* @runInSeparateProcess
* @preserveGlobalState disabled
* @dataProvider dataDir
*
*/

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of compiler plugins
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for compiler plugin tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileCompilerPluginTest extends PHPUnit_Smarty
{

View File

@@ -2,15 +2,15 @@
/**
* Smarty PHPunit tests of delimiter
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for delimiter tests
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*/
class AutoliteralTest extends PHPUnit_Smarty
{
@@ -44,8 +44,6 @@ class AutoliteralTest extends PHPUnit_Smarty
}
/**
* test '{ ' delimiter in double quotes auto_literal true
* @runInSeparateProcess
*
*/
public function testSetAutoliteralDoublequote()
{
@@ -54,8 +52,6 @@ class AutoliteralTest extends PHPUnit_Smarty
}
/**
* test '{ ' delimiter in double quotes auto_literal false
* @runInSeparateProcess
*
*/
public function testSetAutoliteralDoublequote2()
{
@@ -66,8 +62,6 @@ class AutoliteralTest extends PHPUnit_Smarty
/**
* test '{{ ' delimiter in double quotes auto_literal true
* @runInSeparateProcess
*
*/
public function testSetAutoliteralDoublequote3()
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of delimiter
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for delimiter tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class DelimiterTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of delimiter
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for delimiter tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class UserliteralTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPUnit tests default config handler
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Smarty;
/**
* class for default config handler test
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class DefaultConfigHandlerTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of config variables
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for config variable tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class ConfigVarTest extends PHPUnit_Smarty
{
@@ -43,9 +43,6 @@ class ConfigVarTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test string config variable
*/
public function testConfigText()
@@ -55,9 +52,6 @@ class ConfigVarTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test line string config variable
*/
public function testConfigLine()
@@ -67,9 +61,6 @@ class ConfigVarTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test config variables in global sections
*/
public function testConfigVariableGlobalSections()
@@ -79,9 +70,6 @@ class ConfigVarTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test config variables loading section2
*/
public function testConfigVariableSection2()
@@ -91,9 +79,6 @@ class ConfigVarTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test config variables loading section special char
*/
public function testConfigVariableSectionSpecialChar()
@@ -103,9 +88,6 @@ class ConfigVarTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test config variables loading section foo/bar
*/
public function testConfigVariableSectionFooBar()
@@ -115,9 +97,6 @@ class ConfigVarTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test config variables loaded in different scopes from different sections (Smarty and template)
*/
public function testConfigDifferentScope()
@@ -132,9 +111,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test config variables of hidden sections
* shall display variables from hidden section
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigVariableHidden()
{
@@ -146,9 +122,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test config variables of disabled hidden sections
* shall display not variables from hidden section
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigVariableHiddenDisable()
{
@@ -160,9 +133,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test getConfigVars
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetSingleConfigVar()
{
@@ -172,9 +142,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test getConfigVars return all variables
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetAllConfigVars()
{
@@ -187,9 +154,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test clearConfig for single variable
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigClearSingleConfigVar()
{
@@ -200,9 +164,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test clearConfig for all variables
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigClearConfigAll()
{
@@ -215,9 +176,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test config vars on data object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigTextData()
{
@@ -228,9 +186,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test getConfigVars on data object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetSingleConfigVarData()
{
@@ -241,9 +196,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test getConfigVars return all variables on data object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetAllConfigVarsData()
{
@@ -257,9 +209,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test clearConfig for single variable on data object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigClearSingleConfigVarData()
{
@@ -272,9 +221,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test clearConfig for all variables on data object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigClearConfigAllData()
{
@@ -288,9 +234,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test config vars on template object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigTextTemplate()
{
@@ -301,9 +244,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test getConfigVars on template object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetSingleConfigVarTemplate()
{
@@ -314,9 +254,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test getConfigVariable on template object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetSingleConfigVarTemplate2()
{
@@ -327,9 +264,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test getConfigVars return all variables on template object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetAllConfigVarsTemplate()
{
@@ -343,9 +277,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test clearConfig for single variable on template object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigClearSingleConfigVarTemplate()
{
@@ -358,9 +289,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test clearConfig for all variables on template object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigClearConfigAllTemplate()
{
@@ -374,9 +302,6 @@ class ConfigVarTest extends PHPUnit_Smarty
/**
* test config variables loading from absolute file path
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigAbsolutePath()
{

View File

@@ -2,16 +2,12 @@
/**
* Smarty PHPunit tests for File resources
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for file resource tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*/
class CustomResourceAmbiguousTest extends PHPUnit_Smarty
{
@@ -55,12 +51,6 @@ class CustomResourceAmbiguousTest extends PHPUnit_Smarty
$this->assertFalse($tpl->source->exists);
}
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCase1()
{
$resource_handler = new Smarty_Resource_AmbiguousPlugin(__DIR__ . '/templates/ambiguous/');
@@ -75,12 +65,6 @@ class CustomResourceAmbiguousTest extends PHPUnit_Smarty
$this->assertEquals('case1', $tpl->source->getContent());
}
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCase2()
{
$resource_handler = new Smarty_Resource_AmbiguousPlugin(__DIR__ . '/templates/ambiguous/');
@@ -95,12 +79,7 @@ class CustomResourceAmbiguousTest extends PHPUnit_Smarty
$this->assertEquals('case2', $tpl->source->getContent());
}
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCaseSwitching()
{
$resource_handler = new Smarty_Resource_AmbiguousPlugin(__DIR__ . '/templates/ambiguous/');

View File

@@ -8,7 +8,7 @@ use Smarty\Template\Source;
/**
* Ambiguous Filename Custom Resource Example
*
* @package Resource-examples
* @author Rodney Rehm
*/
class Smarty_Resource_AmbiguousPlugin extends FilePlugin

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPUnit tests demo resource plugin extendsall
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ require_once __DIR__ . '/../../../__shared/resources/resource.extendsall.php';
/**
* class for demo resource plugin extendsall tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
{
@@ -29,9 +29,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsall()
{
@@ -46,9 +43,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall
* changed tepmplate_setting
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsall2()
@@ -73,9 +67,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall special application
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsallSpecialApplication()
{
@@ -88,9 +79,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall special application
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsallSpecialApplication2()
{
@@ -103,9 +91,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall special application
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsallSpecialApplication3()
{
@@ -119,9 +104,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall special application
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsallSpecialApplication4()
{
@@ -135,9 +117,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall special application
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsallSpecialApplication5()
{
@@ -151,9 +130,6 @@ class ResourceExtendsAllPluginTest extends PHPUnit_Smarty
/**
* test extendsall special application
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testResourcePluginExtendsallSpecialApplication6()
{

View File

@@ -2,20 +2,20 @@
/**
* Smarty PHPunit tests resource plugins
*
* @package PHPunit
* @author Uwe Tews
*/
if (MysqlResourceEnable == true) {
/**
* class for resource plugins tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class ResourceMysqlPluginTest extends PHPUnit_Smarty
{
public function setUp()
public function setUp(): void
{
if (MysqlResourceEnable != true) {
$this->markTestSkipped('Msqlresource tests are disabled');
@@ -39,10 +39,6 @@ if (MysqlResourceEnable == true) {
/**
* test resource plugin rendering of a custom resource
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testResourcePluginMysql()
{
@@ -51,10 +47,6 @@ if (MysqlResourceEnable == true) {
/**
* test must compile
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testMustCompile()
{
@@ -64,10 +56,6 @@ if (MysqlResourceEnable == true) {
/**
* test must compile
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testMustCompile2()
{
@@ -79,10 +67,6 @@ if (MysqlResourceEnable == true) {
/**
* test resource plugin rendering of a custom resource
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testResourcePluginMysql2()
{
@@ -91,10 +75,6 @@ if (MysqlResourceEnable == true) {
/**
* test clear compiled
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testClearCompiled()
{
@@ -103,10 +83,6 @@ if (MysqlResourceEnable == true) {
/**
* test must compile
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testMustCompile3()
{
@@ -137,10 +113,6 @@ if (MysqlResourceEnable == true) {
/**
* test unknown template
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testUnknownTemplate() {
$this->expectException(\Smarty\Exception::class);

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests deault template handler
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for block plugin tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class DefaultTemplateHandlerTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests for eval resources
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for eval resource tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class EvalResourceTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for Extendsresource
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Template;
/**
* class for extends resource tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class ExtendsResourceTest extends PHPUnit_Smarty
{
@@ -36,8 +36,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test child/parent template chain with prepend
* @runInSeparateProcess
* @preserveGlobalState disabled
* @dataProvider data
*/
public function testCompileBlockChildPrepend_003($caching, $merge, $testNumber, $compileTestNumber, $renderTestNumber, $testName)
@@ -55,8 +53,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
}
/**
* test child/parent template chain with apppend
* @run InSeparateProcess
* @preserveGlobalState disabled
* @dataProvider data
*/
public function testCompileBlockChildAppend_004($caching, $merge, $testNumber, $compileTestNumber, $renderTestNumber, $testName)
@@ -75,8 +71,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test child/parent template chain with apppend
* @runInSeparateProcess
* @preserveGlobalState disabled
* @dataProvider data
*/
public function testCompileBlockAssignInChild_040($caching, $merge, $testNumber, $compileTestNumber, $renderTestNumber, $testName)
@@ -95,8 +89,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test1
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testCompileBlockGrandChildMustCompile_021_1()
{
@@ -110,8 +102,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test1
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testCompileBlockGrandChildMustCompile_021_12()
{
@@ -125,8 +115,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test2
* @runInSeparateProcess
* @preserveGlobalState disabled
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_2()
@@ -143,9 +131,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
}
/**
* test grandchild/child/parent dependency test2
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCompileBlockGrandChildMustCompile_021_22()
{
@@ -159,9 +144,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test3
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCompileBlockGrandChildMustCompile_021_3()
{
@@ -177,9 +159,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
}
/**
* test grandchild/child/parent dependency test3
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCompileBlockGrandChildMustCompile_021_32()
{
@@ -193,8 +172,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test4
* @runInSeparateProcess
* @preserveGlobalState disabled
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_4()
@@ -211,9 +188,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
}
/**
* test grandchild/child/parent dependency test4
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testCompileBlockGrandChildMustCompile_021_42()
{
@@ -227,9 +201,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
/**
* test relative includes in {block}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
* @dataProvider data
*/
public function testCompileBlockRelativeIncludes_033($caching, $merge, $testNumber, $compileTestNumber,
@@ -271,9 +242,6 @@ class ExtendsResourceTest extends PHPUnit_Smarty
}
/**
* test relative includes in {block}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
* @dataProvider data2
*/
public function testCompileBlockExtendsRecursion_034($extends_recursion, $merge, $testNumber, $compileTestNumber,

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for File resources
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Exception;
/**
* class for file resource tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class FileResourceTest extends PHPUnit_Smarty
{
@@ -208,7 +208,7 @@ class FileResourceTest extends PHPUnit_Smarty
/**
*
* @run InSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testRelativeIncludeSub()
@@ -217,9 +217,6 @@ class FileResourceTest extends PHPUnit_Smarty
$this->assertStringContainsString('hello world', $result);
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* test relative include fail
*/
public function testRelativeIncludeFail()
@@ -229,8 +226,8 @@ class FileResourceTest extends PHPUnit_Smarty
$this->smarty->fetch('relative_sub.tpl');
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
* test relative include fail other dir
*/
@@ -244,8 +241,8 @@ class FileResourceTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRelativeFetch()
@@ -260,8 +257,8 @@ class FileResourceTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRelativeFetch2()
@@ -276,8 +273,8 @@ class FileResourceTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRelativeFetchCwd()
@@ -297,8 +294,8 @@ class FileResourceTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRelativeFetchCwd2()

View File

@@ -3,11 +3,11 @@
/**
* Smarty PHPunit tests for File resources
*
* @package PHPunit
* @author Rodney Rehm
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class FileResourceIndexedTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests register->resource
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Resource\CustomPlugin;
/**
* class for register->resource tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class RegisteredResourceTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests resource plugins
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for resource plugins tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class ResourcePluginTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests for stream resources
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for stream resource tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class StreamResourceTest extends PHPUnit_Smarty
{
@@ -27,7 +27,6 @@ class StreamResourceTest extends PHPUnit_Smarty
fclose($fp);
}
public function testInit()
{
$this->cleanDirs();
@@ -138,8 +137,8 @@ class StreamResourceTest extends PHPUnit_Smarty
$this->assertFalse($this->smarty->templateExists('global:notthere'));
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
* test not existing template
*/

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests for string resources
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for string resource tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class StringResourceTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of function calls
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for function tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class FunctionTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for security
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\CompilerException;
/**
* class for security test
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class SecurityTest extends PHPUnit_Smarty
{
@@ -47,8 +47,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test not trusted PHP function
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testNotTrustedPHPFunction()
{
@@ -79,8 +79,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test not trusted modifier
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @deprecated
*/
public function testNotTrustedModifier()
@@ -113,8 +113,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test not allowed tag
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testNotAllowedTags2()
{
@@ -126,8 +126,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test disabled tag
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testDisabledTags()
{
@@ -156,8 +156,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test not allowed modifier
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testNotAllowedModifier()
{
@@ -169,8 +169,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test disabled modifier
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testDisabledModifier()
{
@@ -220,8 +220,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test not trusted directory
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testNotTrustedDirectory()
{
@@ -252,8 +252,8 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test not trusted PHP function
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testNotTrustedStaticClass()
{
@@ -301,12 +301,12 @@ class SecurityTest extends PHPUnit_Smarty
/**
* test template file exits
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testTemplateTrustedStream()
{
stream_wrapper_register("global", "ResourceStreamSecurity")
stream_wrapper_register("global", "ResourceStreamSecurity")
or die("Failed to register protocol");
$fp = fopen("global://mytest", "r+");
fwrite($fp, 'hello world {$foo}');
@@ -314,10 +314,11 @@ class SecurityTest extends PHPUnit_Smarty
$this->smarty->security_policy->streams= array('global');
$tpl = $this->smarty->createTemplate('global:mytest');
$this->assertTrue($tpl->source->exists);
stream_wrapper_unregister("global");
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* test template file exits
*/
public function testTemplateNotTrustedStream()
@@ -332,10 +333,11 @@ class SecurityTest extends PHPUnit_Smarty
$this->smarty->security_policy->streams= array('notrusted');
$tpl = $this->smarty->createTemplate('global:mytest');
$this->assertTrue($tpl->source->exists);
stream_wrapper_unregister("global");
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testTrustedUri()
{
@@ -346,8 +348,8 @@ class SecurityTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testNotTrustedUri()
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests append method
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for append tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class AppendTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests appendByRef method
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for appendByRef tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class AppendByRefTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests assign method
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for assign tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class AssignTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests assignByRef method
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for assignByRef tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class AssignByRefTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests assignGlobal method and {assignGlobal} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for assignGlobal method and {assignGlobal} tag tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class AssignGlobalTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests clearing all assigned variables
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for clearing all assigned variables tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class ClearAllAssignTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests clearing assigned variables
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for clearing assigned variables tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class ClearAssignTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for deleting compiled templates
*
* @package PHPunit
* @author Uwe Tews
* @author Rodney Rehm
*/
@@ -10,9 +10,9 @@
/**
* class for delete compiled template tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class ClearCompiledTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests getTemplateVars method
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for getTemplateVars method test
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class GetTemplateVarsTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests register->block / unregister->block methods
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Smarty;
/**
* class for register->block / unregister->block methods tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class RegisterBlockTest extends PHPUnit_Smarty
{
@@ -111,8 +111,8 @@ class RegisterBlockTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterBlockCaching2()
@@ -127,8 +127,8 @@ class RegisterBlockTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterBlockCaching3()
@@ -144,8 +144,8 @@ class RegisterBlockTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterBlockCaching4()
@@ -160,8 +160,8 @@ class RegisterBlockTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterBlockCaching1Wrapper()
@@ -177,8 +177,8 @@ class RegisterBlockTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterBlockCaching2Wrapper()
@@ -193,8 +193,8 @@ class RegisterBlockTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterBlockCaching3Wrapper()
@@ -210,8 +210,8 @@ class RegisterBlockTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterBlockCaching4Wrapper()

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests register->compilerFunction / unregister->compilerFunction methods
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Smarty;
/**
* class for register->compilerFunction / unregister->compilerFunction methods tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class RegisterCompilerFunctionTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests register/unregister function plugins
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Smarty;
/**
* class for register/unregister function plugins methods tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*/
class RegisterFunctionTest extends PHPUnit_Smarty
@@ -61,8 +61,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
/**
* test registerPlugin method for function cached
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testRegisterFunctionCaching1()
{
@@ -78,8 +78,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
/**
* test registerPlugin method for function cached
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterFunctionCaching2()
@@ -95,8 +95,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
/**
* test registerPlugin method for function not cached
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterFunctionCaching3()
@@ -113,8 +113,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
/**
* test registerPlugin method for function not cached
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testRegisterFunctionCaching4()

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests register->modifier / unregister->modifier methods
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for register->modifier / unregister->modifier methods tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class RegisterModifierTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of registered object functions
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for registered object function tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileRegisteredObjectFunctionTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests for templateExists method
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for templateExists tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class TemplateExistsTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests comments in templates
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for security test
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CommentsTest extends PHPUnit_Smarty
{
@@ -28,7 +28,7 @@ class CommentsTest extends PHPUnit_Smarty
/**
* Test comments
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestComments
*/
public function testComments($code, $result, $testName, $testNumber)

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests spacing in template output
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for spacing test
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class SpacingTest extends PHPUnit_Smarty
{
@@ -28,9 +28,9 @@ class SpacingTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testSpacing($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests static class access to constants, variables and methods
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for static class access to constants, variables and methods tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class StaticClassAccessTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of append tags
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for append tags tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileAppendTest extends PHPUnit_Smarty
{
@@ -32,8 +32,8 @@ class CompileAppendTest extends PHPUnit_Smarty
/**
* Test {append} tags
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestAppend
*/
public function testAppend($code, $result, $testName, $testNumber)
@@ -70,9 +70,9 @@ class CompileAppendTest extends PHPUnit_Smarty
/**
* Test Assign spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testAppendSpacing($code, $result, $testName, $testNumber)
{
@@ -88,9 +88,9 @@ class CompileAppendTest extends PHPUnit_Smarty
/**
* Test Append nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testAppendSpacingNocache($code, $result, $testName, $testNumber)
{
@@ -107,9 +107,9 @@ class CompileAppendTest extends PHPUnit_Smarty
/**
* Test Append nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testAppendSpacingNocache2($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of assign tags
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for assign tags tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileAssignTest extends PHPUnit_Smarty
{
@@ -33,7 +33,7 @@ class CompileAssignTest extends PHPUnit_Smarty
* Test assign tags
*
* @not runInSeparateProcess
* @preserveGlobalState disabled
*
* @dataProvider dataTestAssign
*/
public function testAssign($code, $result, $testName, $testNumber)
@@ -93,9 +93,9 @@ class CompileAssignTest extends PHPUnit_Smarty
/**
* Test Assign spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testAssignSpacing($code, $result, $testName, $testNumber)
{
@@ -111,9 +111,9 @@ class CompileAssignTest extends PHPUnit_Smarty
/**
* Test Output nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testAssignSpacingNocache($code, $result, $testName, $testNumber)
{
@@ -130,9 +130,9 @@ class CompileAssignTest extends PHPUnit_Smarty
/**
* Test Output nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testAssignSpacingNocache2($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of block plugins
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for block plugin tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileBlockPluginTest extends PHPUnit_Smarty
{

View File

@@ -2,8 +2,8 @@
/**
* Smarty plugin for testing block plugins
*
* @package Smarty
* @subpackage PHPunitPlugin
*/
/**

View File

@@ -2,8 +2,8 @@
/**
* Smarty plugin for testing block plugins
*
* @package Smarty
* @subpackage PHPunitPlugin
*/
/**

View File

@@ -2,8 +2,8 @@
/**
* Smarty plugin for testing block plugins
*
* @package Smarty
* @subpackage PHPunitPlugin
*/
/**

View File

@@ -2,8 +2,8 @@
/**
* Smarty plugin for testing block plugins
*
* @package Smarty
* @subpackage PHPunitPlugin
*/
use Smarty\Template;

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests for Block Extends
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -11,9 +11,9 @@ use Smarty\Template;
/**
* class for block extends compiler tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileBlockExtendsTest extends PHPUnit_Smarty
{
@@ -62,8 +62,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChild_002($caching, $merge, $testNumber, $compileTestNumber, $renderTestNumber,
@@ -87,8 +87,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with prepend
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildPrepend_003($caching, $merge, $testNumber, $compileTestNumber,
@@ -113,8 +113,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with prepend
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockGrandPrepend_003($caching, $merge, $testNumber, $compileTestNumber,
@@ -140,8 +140,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with apppend
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildAppend_004($caching, $merge, $testNumber, $compileTestNumber,
@@ -167,8 +167,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/parent template chain with apppend
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockGrandAppend_004($caching, $merge, $testNumber, $compileTestNumber,
@@ -194,8 +194,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/parent template chain with apppend
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockGrandAppendPrepend_004($caching, $merge, $testNumber, $compileTestNumber,
@@ -221,8 +221,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with apppend and shorttags
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildAppendShortag_005($caching, $merge, $testNumber, $compileTestNumber,
@@ -247,8 +247,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with {$this->smarty.block.child)
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildSmartyChild_006($caching, $merge, $testNumber, $compileTestNumber,
@@ -273,8 +273,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with {$this->smarty.block.parent)
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildSmartyParent_007($caching, $merge, $testNumber, $compileTestNumber,
@@ -300,8 +300,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent template chain with {$this->smarty.block.parent)
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildSmartyParent_007_2($caching, $merge, $testNumber, $compileTestNumber,
@@ -327,8 +327,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain loading plugin
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildPlugin_008($caching, $merge, $testNumber, $compileTestNumber,
@@ -354,8 +354,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test parent template with nested blocks
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockParentNested_009($caching, $merge, $testNumber, $compileTestNumber,
@@ -379,8 +379,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with nested block
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildNested_010($caching, $merge, $testNumber, $compileTestNumber,
@@ -405,8 +405,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with nested block and include
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildNestedInclude_011($caching, $merge, $testNumber, $compileTestNumber,
@@ -432,8 +432,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test template chain with nested block level test
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildNestedInclude_012($caching, $merge, $testNumber, $compileTestNumber,
@@ -459,8 +459,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test nested child block with hide
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildNestedHide_018($caching, $merge, $testNumber, $compileTestNumber,
@@ -483,8 +483,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test nested grand/child block with hide
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildNestedHide_018_2($caching, $merge, $testNumber, $compileTestNumber,
@@ -507,8 +507,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test nested grandgrand/grand/child block with hide
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockChildNestedHide_018_3($caching, $merge, $testNumber, $compileTestNumber,
@@ -531,8 +531,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain starting in subtempates
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockStartSubTemplates_020($caching, $merge, $testNumber, $compileTestNumber,
@@ -559,8 +559,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test1
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testCompileBlockGrandChildMustCompile_021_1()
{
@@ -589,8 +589,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test1
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testCompileBlockGrandChildMustCompile_021_12()
{
@@ -610,8 +610,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test2
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_2()
@@ -645,8 +645,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test3
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_3()
@@ -670,8 +670,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test3
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_32()
@@ -692,8 +692,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test4
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_4()
@@ -717,8 +717,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent dependency test4
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_42()
@@ -787,8 +787,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testSmartyBlockVariablePartentInclude_28($caching, $merge, $testNumber, $compileTestNumber,
@@ -834,8 +834,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent template chain with nested {$this->smarty.block.child} and {include nocache}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockGrandChildNested_030($caching, $merge, $testNumber, $compileTestNumber,
@@ -857,8 +857,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent template chain with nested {$this->smarty.block.child} and {include nocache}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockGrandChildNestedRelative_030($caching, $merge, $testNumber, $compileTestNumber,
@@ -880,8 +880,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent template chain with nested {$this->smarty.block.child} and {include nocache}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockParent_034_1($caching, $merge, $testNumber, $compileTestNumber,
@@ -902,8 +902,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent template chain with nested {$this->smarty.block.child} and {include nocache}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockParent_034_2($caching, $merge, $testNumber, $compileTestNumber,
@@ -924,8 +924,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent template chain with nested {$this->smarty.block.child} and {include nocache}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockParent_034_3($caching, $merge, $testNumber, $compileTestNumber,
@@ -946,8 +946,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test grandchild/child/parent template chain with nested {$this->smarty.block.child} and {include nocache}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockParent_034_4($caching, $merge, $testNumber, $compileTestNumber,
@@ -968,8 +968,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with {$this->smarty.block.child)
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockChild_035_1($caching, $merge, $testNumber, $compileTestNumber,
@@ -995,8 +995,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with {$this->smarty.block.child)
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockChild_035_2($caching, $merge, $testNumber, $compileTestNumber,
@@ -1021,8 +1021,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with {$this->smarty.block.child)
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockChild_035_3($caching, $merge, $testNumber, $compileTestNumber,
@@ -1047,8 +1047,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test child/parent template chain with {$this->smarty.block.child)
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockSmartyBlockChild_035_4($caching, $merge, $testNumber, $compileTestNumber,
@@ -1123,8 +1123,8 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* test relative includes in {block}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider data
*/
public function testCompileBlockRelativeIncludes_033($caching, $merge, $testNumber, $compileTestNumber,
@@ -1194,9 +1194,9 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testSpacing($code, $result, $testName, $testNumber)
{
@@ -1212,9 +1212,9 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* Test Output nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testBlockSpacingNocache($code, $result, $testName, $testNumber)
{
@@ -1231,9 +1231,9 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* Test Output nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testBlockSpacingNocache2($code, $result, $testName, $testNumber)
{
@@ -1270,9 +1270,9 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestChildSpacing
* @runInSeparateProcess
*
*/
public function testChildSpacing($code, $result, $testName, $testNumber)
{
@@ -1319,9 +1319,9 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* Test Block nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestBlockNocache
* @runInSeparateProcess
*
*/
public function testBlockNocacheSpacing($code, $result, $name, $testNumber)
{
@@ -1338,9 +1338,9 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/**
* Test Block nocache spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestBlockNocache
* @runInSeparateProcess
*
*/
public function testBlockNocacheSpacing2($code, $result, $name, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of capture tags
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for capture tags tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileCaptureTest extends PHPUnit_Smarty
{
@@ -31,7 +31,7 @@ class CompileCaptureTest extends PHPUnit_Smarty
* Test capture tags
*
* @not runInSeparateProcess
* @preserveGlobalState disabled
*
* @dataProvider dataTestCapture
*/
public function testCapture($code, $result, $testName, $testNumber)
@@ -83,8 +83,8 @@ class CompileCaptureTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testCompileCaptureNocache2()
@@ -107,9 +107,9 @@ class CompileCaptureTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testSpacing($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compiler plugin
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for compiler plugin tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompilerPluginTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of the {config_load} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for config variable tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileConfigLoadTest extends PHPUnit_Smarty
{
@@ -37,8 +37,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
* test {load_config} loading section2
*/
@@ -47,8 +47,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
$this->assertEquals("Welcome to Smarty! Global Section1 Hello Section2", $this->smarty->fetch('001_section2.tpl'));
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
* test {load_config} loading section2
*/
@@ -59,8 +59,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
* test {load_config} loading section2
*/
@@ -70,8 +70,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
* test {load_config} loading section2 shorttags
*/
@@ -83,8 +83,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
/**
* test config varibales loading all sections from template
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testConfigVariableAllSectionsTemplate_004()
{
@@ -95,8 +95,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
/**
* test config varibales overwrite
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testConfigVariableOverwrite_005()
{
@@ -104,16 +104,16 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testConfigVariableOverwrite_006()
{
$this->assertEquals("Welcome to Smarty! Overwrite3", $this->smarty->fetch('006_overwrite.tpl'));
}
/**
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testConfigVariableOverwrite_0061()
{
@@ -125,8 +125,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
/**
* test config varibales overwrite false
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testConfigVariableOverwrite_007()
{
@@ -137,8 +137,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
/**
* test config varibales booleanize on
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testConfigVariableBooleanizeOn_008()
{
@@ -150,8 +150,8 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
/**
* test config varibales booleanize off
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testConfigVariableBooleanizeOff_008()
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests compilation of delimiter tags
*
* @package PHPunit
* @author Uwe Tews
*/
@@ -10,8 +10,8 @@
* class for delimiter tags tests
*
* @run TestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*/
class CompileDelimiterTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of {eval} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for {eval} tag tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileEvalTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of {for} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for {for} tag tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileForTest extends PHPUnit_Smarty
{
@@ -29,9 +29,9 @@ class CompileForTest extends PHPUnit_Smarty
/**
* Test For
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestFor
* @runInSeparateProcess
*
*/
public function testFor($code, $result, $testName, $testNumber)
{
@@ -90,8 +90,8 @@ class CompileForTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForNocacheVar2()
@@ -114,8 +114,8 @@ class CompileForTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForNocacheTag2()
@@ -138,8 +138,8 @@ class CompileForTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForCache2()
@@ -153,9 +153,9 @@ class CompileForTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testSpacing($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of {foreach} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for {foreach} tag tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileForeachTest extends PHPUnit_Smarty
{
@@ -31,7 +31,7 @@ class CompileForeachTest extends PHPUnit_Smarty
* Test foreach tags
*
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestForeach
*/
public function testForeach($code, $foo, $result, $testName, $testNumber)
@@ -105,7 +105,7 @@ class CompileForeachTest extends PHPUnit_Smarty
* Test foreach tags caching
*
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestForeachNocache
*/
public function testForeachCaching($code, $new, $assignNocache, $foo, $result, $testName, $testNumber)
@@ -151,8 +151,8 @@ class CompileForeachTest extends PHPUnit_Smarty
/*
* test foreach and nocache
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testForeachNocacheVar1_024()
@@ -165,8 +165,8 @@ class CompileForeachTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForeachNocacheVar2_024()
@@ -179,8 +179,8 @@ class CompileForeachTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForeachNocacheTag1_025()
@@ -193,8 +193,8 @@ class CompileForeachTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForeachNocacheTag2_25()
@@ -207,8 +207,8 @@ class CompileForeachTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForeachCache1_26()
@@ -221,8 +221,8 @@ class CompileForeachTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testForeachCache2_26()
@@ -303,9 +303,9 @@ class CompileForeachTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testSpacing($code, $result, $testName, $testNumber)
{
@@ -347,9 +347,9 @@ class CompileForeachTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestElseSpacing
* @runInSeparateProcess
*
*/
public function testElseSpacing($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of function plugins
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for function plugin tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileFunctionPluginTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of {if} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for {if} tag tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileIfTest extends PHPUnit_Smarty
{
@@ -33,7 +33,7 @@ class CompileIfTest extends PHPUnit_Smarty
* Test if tags
*
* @not runInSeparateProcess
* @preserveGlobalState disabled
*
* @dataProvider dataTestIf
*/
public function testIf($code, $result, $testName, $testNumber)
@@ -148,8 +148,8 @@ class CompileIfTest extends PHPUnit_Smarty
/**
* Test if nocache tags
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestIfNocache
*/
public function testIfNocache($var, $value, $code, $result, $testName, $testNumber, $file = null)
@@ -205,9 +205,9 @@ class CompileIfTest extends PHPUnit_Smarty
/**
* Test spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testSpacing($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of the {include} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for {include} tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileIncludeTest extends PHPUnit_Smarty
{
@@ -31,8 +31,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* test spacing
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProviderCaching
*/
public function testSpacing_001($merge, $caching, $text)
@@ -49,8 +49,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* test spacing
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProviderCaching
*/
public function testSpacing_001V2($merge, $caching, $text)
@@ -67,8 +67,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* test spacing
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProviderCaching
*/
public function testSpacing_001V3($merge, $caching, $text)
@@ -85,8 +85,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* test standard output
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testIncludeStandard_001($merge, $text)
@@ -100,8 +100,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* test standard output var
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testIncludeStandardNocacheVar($merge, $text)
@@ -117,8 +117,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test that assign attribute does not create standard output
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testIncludeAssign1($merge, $text)
@@ -131,8 +131,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test that assign attribute does load variable
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testIncludeAssign2($merge, $text)
@@ -145,8 +145,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test passing local vars eval
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testIncludePassVars($merge, $text)
@@ -160,8 +160,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test passing local vars include
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testIncludePassVars2($merge, $text)
@@ -177,8 +177,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test recursive includes
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testRecursiveIncludes1($merge, $text)
@@ -193,8 +193,8 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test recursive includes 2
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider includeProvider
*/
public function testRecursiveIncludes2($merge, $text)
@@ -244,9 +244,9 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test Include spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testIncludeSpacing($code, $result, $testName, $testNumber)
{
@@ -262,9 +262,9 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test Output spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testIncludeSpacingNocache($code, $result, $testName, $testNumber)
{
@@ -281,9 +281,9 @@ class CompileIncludeTest extends PHPUnit_Smarty
/**
* Test Output spacings
*
* @preserveGlobalState disabled
*
* @dataProvider dataTestSpacing
* @runInSeparateProcess
*
*/
public function testIncludeSpacingNocache2($code, $result, $testName, $testNumber)
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests appendByRef method
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for appendByRef tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class LiteralTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of {make_nocache} tags
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for {make_nocache} tags tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class CompileMakeNocacheTest extends PHPUnit_Smarty
{
@@ -32,7 +32,7 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
* Test {make_nocache} tags caching disabled
*
* @not runInSeparateProcess
* @preserveGlobalState disabled
*
* @dataProvider dataTestMakeNocache001
*/
public function testMakeNocache_001($foo, $result)
@@ -63,7 +63,7 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
* Test {make_nocache} cached tags
*
* @not runInSeparateProcess
* @preserveGlobalState disabled
*
* @dataProvider dataTestMakeNocache001_1
*/
public function testMakeNocache_001_1($foo, $result)
@@ -94,8 +94,8 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} cached tags existing nocahe variable
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestMakeNocache001_2
*/
public function testMakeNocache_001_2($foo, $result)
@@ -126,8 +126,8 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} cached tags reassign
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestMakeNocache001_3
*/
public function testMakeNocache_001_3($foo, $result)
@@ -159,8 +159,8 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} cached tags {if}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestMakeNocache001_4
*/
public function testMakeNocache_001_4($foo, $bar, $result)
@@ -189,8 +189,8 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} cached tags {if} nocache
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestMakeNocache001_5
*/
public function testMakeNocache_001_5($foo, $bar, $result)
@@ -223,8 +223,8 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} cached tags {foreach}
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestMakeNocache001_6
*/
public function testMakeNocache_001_6($foo, $bar, $result)
@@ -254,8 +254,8 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} cached tags {foreach} nocache
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
* @dataProvider dataTestMakeNocache001_7
*/
public function testMakeNocache_001_7($foo, $bar, $result)
@@ -285,7 +285,7 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} with values containing '\'
*
* @preserveGlobalState disabled
*
*/
public function testMakeNocache_002()
{
@@ -297,7 +297,7 @@ class CompileMakeNocacheTest extends PHPUnit_Smarty
/**
* Test {make_nocache} with values containing spaces
*
* @preserveGlobalState disabled
*
*/
public function testMakeNocache_003()
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests compilation of {nocache} tag
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for {nocache} tag tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class CompileNocacheTest extends PHPUnit_Smarty
{
@@ -59,8 +59,8 @@ class CompileNocacheTest extends PHPUnit_Smarty
/**
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*
*/
public function testNocacheCachingYes2()

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginBlockTextformatTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginFunctionFetchTest extends PHPUnit_Smarty
{
@@ -29,8 +29,8 @@ class PluginFunctionFetchTest extends PHPUnit_Smarty
/**
* test {fetch} from UIR
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testFetchUri()
{
@@ -40,8 +40,8 @@ class PluginFunctionFetchTest extends PHPUnit_Smarty
/**
* test {fetch} invalid uri
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
*
*/
public function testFetchInvalidUri()
{
@@ -54,7 +54,7 @@ class PluginFunctionFetchTest extends PHPUnit_Smarty
* test {fetch file=...} access to file from path not aloo/wed by security settings
*
* @run InSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testFetchSecurity()
{
@@ -69,7 +69,7 @@ class PluginFunctionFetchTest extends PHPUnit_Smarty
* test {fetch file=...} access to file from path not aloo/wed by security settings
*
* @run InSeparateProcess
* @preserveGlobalState disabled
*
*/
public function testFetchSecurity2()
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
@@ -11,9 +11,9 @@ require_once(__DIR__ . '/helpers/_object_tostring.php');
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginFunctionHtmlCheckboxesTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
@@ -11,9 +11,9 @@ require_once(__DIR__ . '/helpers/_object_tostring.php');
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginFunctionHtmlOptionsTest extends PHPUnit_Smarty
{

View File

@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
@@ -10,9 +10,9 @@ require_once(__DIR__ . '/helpers/_object_tostring.php');
/**
* class for modifier tests
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginFunctionHtmlRadiosTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginFunctionHtmlSelectDateTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginFunctionHtmlSelectTimeTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginFunctionMailtoTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class PluginModifierCapitalizeTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class PluginModifierCharsetTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class PluginModifierCountCharactersTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierCountSentencesTest extends PHPUnit_Smarty
{

View File

@@ -6,9 +6,9 @@
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class PluginModifierCountTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierCountWordsTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierDefaultTest extends PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierEscapeTest extends PHPUnit_Smarty
{

View File

@@ -5,9 +5,9 @@ namespace UnitTests\TemplateSource\TagTests\PluginModifier;
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierExplodeTest extends \PHPUnit_Smarty
{

View File

@@ -2,15 +2,15 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierLowerTest extends PHPUnit_Smarty
{

View File

@@ -6,9 +6,9 @@
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
*
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*/
class PluginModifierNl2brTest extends PHPUnit_Smarty
{

View File

@@ -5,9 +5,9 @@ namespace UnitTests\TemplateSource\TagTests\PluginModifier;
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierNumberFormatTest extends \PHPUnit_Smarty
{

View File

@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
* @package PHPunit
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierRegexReplaceTest extends PHPUnit_Smarty
{

View File

@@ -5,9 +5,9 @@ namespace UnitTests\TemplateSource\TagTests\PluginModifier;
/**
* class for modifier tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*
*
*
*/
class PluginModifierReplaceTest extends \PHPUnit_Smarty
{

Some files were not shown because too many files have changed in this diff Show More