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; 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. * 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); define('individualFolders', true);
} }
parent::__construct($name, $data, $dataName); 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 * class for path normalization tests
* *
* @runTestsInSeparateProcess *
* @preserveGlobalState disabled *
* @backupStaticAttributes enabled *
*/ */
class PathNormalizationTest extends PHPUnit_Smarty class PathNormalizationTest extends PHPUnit_Smarty
{ {

View File

@@ -6,9 +6,9 @@
/** /**
* class for path normalization tests * class for path normalization tests
* *
* @runTestsInSeparateProcess *
* @preserveGlobalState disabled * @preserveGlobalState disabled
* @backupStaticAttributes enabled *
*/ */
class TemplateNormalizationTest extends PHPUnit_Smarty 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 * class for protected $template_dir, $compile_dir, $cache_dir, $config_dir, $plugins_dir property tests
* *
* @runTestsInSeparateProcess *
* @preserveGlobalState disabled * @preserveGlobalState disabled
* @backupStaticAttributes enabled *
*/ */
class ProtectedFolderVarsTest extends PHPUnit_Smarty 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 * class for protected $template_dir, $compile_dir, $cache_dir, $config_dir, $plugins_dir property tests
* *
* @backupStaticAttributes enabled *
*/ */
class UndefinedTemplateVarTest extends PHPUnit_Smarty class UndefinedTemplateVarTest extends PHPUnit_Smarty
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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