summaryrefslogtreecommitdiff
path: root/tests/UnitTests/TemplateSource/ValueTests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnitTests/TemplateSource/ValueTests')
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/Array/ArrayTest.php12
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/BoolenNull/BooleanNullTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/ConstantTests/ConstantsTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/DoubleQuoted/DoubleQuotedStringTest.php12
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php16
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/Modifier/ModifierTest.php18
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/Objects/ObjectVariableTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/PHPfunctions/PhpFunctionTest.php23
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SingleQouted/SingleQuotedStringTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Constant/SmartyConstantTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Cookie/CookieTest.php16
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Delimiter/SmartyDelimiterTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Error/SmartyErrorTest.php12
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Now/SmartyNowTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Post/PostTest.php16
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/SmartyTemplateObjectTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/templates/template_object.tpl2
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Version/SmartyVersionTest.php10
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/Variables/Stream/StreamVariableTest.php8
-rw-r--r--tests/UnitTests/TemplateSource/ValueTests/Variables/VariableVariable/VariableVariableTest.php8
20 files changed, 103 insertions, 114 deletions
diff --git a/tests/UnitTests/TemplateSource/ValueTests/Array/ArrayTest.php b/tests/UnitTests/TemplateSource/ValueTests/Array/ArrayTest.php
index 75b1db85..94391ddd 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/Array/ArrayTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/Array/ArrayTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests array definitions and access
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for array tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class ArrayTest extends PHPUnit_Smarty
{
@@ -27,9 +27,9 @@ class ArrayTest extends PHPUnit_Smarty
/**
* Test array access
*
- * @preserveGlobalState disabled
+ *
* @dataProvider dataTestArray
- * @runInSeparateProcess
+ *
*/
public function testArray($code, $result, $testName, $testNumber)
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/BoolenNull/BooleanNullTest.php b/tests/UnitTests/TemplateSource/ValueTests/BoolenNull/BooleanNullTest.php
index d60a9a00..41b5a10c 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/BoolenNull/BooleanNullTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/BoolenNull/BooleanNullTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests literals true false null
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for {$smarty.ldelim} {$smarty.rdelim} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class BooleanNullTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/ConstantTests/ConstantsTest.php b/tests/UnitTests/TemplateSource/ValueTests/ConstantTests/ConstantsTest.php
index fd821a8c..f85acafb 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/ConstantTests/ConstantsTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/ConstantTests/ConstantsTest.php
@@ -3,11 +3,11 @@
/**
* Smarty PHPunit tests of constants
*
- * @package PHPunit
+
* @author Uwe Tews
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
Class TestConst
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/DoubleQuoted/DoubleQuotedStringTest.php b/tests/UnitTests/TemplateSource/ValueTests/DoubleQuoted/DoubleQuotedStringTest.php
index b6830230..688afb2e 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/DoubleQuoted/DoubleQuotedStringTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/DoubleQuoted/DoubleQuotedStringTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests double quoted strings
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for double quoted string tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class DoubleQuotedStringTest extends PHPUnit_Smarty
{
@@ -31,7 +31,7 @@ class DoubleQuotedStringTest extends PHPUnit_Smarty
/**
* Test double qouted strings
*
- * @preserveGlobalState disabled
+ *
* @dataProvider dataTestDoubleQuoted
*/
public function testDoubleQuoted($code, $result, $testName, $testNumber)
@@ -84,7 +84,7 @@ class DoubleQuotedStringTest extends PHPUnit_Smarty
*/
public function testDoubleQuotedUnclosedBlock_001()
{
- $this->expectException('SmartyCompilerException');
+ $this->expectException(\Smarty\CompilerException::class);
$this->expectExceptionMessage('unclosed \'{if}\' in doubled quoted string');
$this->smarty->fetch('001_unclosedBlock.tpl');
}
diff --git a/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php b/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php
index e4522e06..8d9f07f5 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
- * @package PHPunit
+
* @author Rodney Rehm
*/
/**
* class for modifier tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class MathTest extends PHPUnit_Smarty
{
@@ -69,14 +69,6 @@ class MathTest extends PHPUnit_Smarty
$this->assertEquals($expected, $this->smarty->fetch($tpl));
}
- public function testSyntaxSin()
- {
- $this->smarty->disableSecurity();
- $expected = sin(4) . ' -- ' . sin(4);
- $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$x|sin} -- {$y = sin($x)}{$y}');
- $this->assertEquals($expected, $this->smarty->fetch($tpl));
- }
-
public function testFunctionSin()
{
$this->smarty->disableSecurity();
diff --git a/tests/UnitTests/TemplateSource/ValueTests/Modifier/ModifierTest.php b/tests/UnitTests/TemplateSource/ValueTests/Modifier/ModifierTest.php
index 065a4920..2895ad97 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/Modifier/ModifierTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/Modifier/ModifierTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests of modifier
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for modifier tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class ModifierTest extends PHPUnit_Smarty
{
@@ -30,7 +30,7 @@ class ModifierTest extends PHPUnit_Smarty
* Test modifier
*
* @not runInSeparateProcess
- * @preserveGlobalState disabled
+ *
* @dataProvider dataTestModifier
*/
public function testModifier($code, $result, $testName, $testNumber)
@@ -79,7 +79,7 @@ class ModifierTest extends PHPUnit_Smarty
*/
public function testModifierRegisteredStaticClass()
{
- $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER, 'testmodifier', array('testmodifierclass', 'staticcall'));
+ $this->smarty->registerPlugin(\Smarty\Smarty::PLUGIN_MODIFIER, 'testmodifier', array('testmodifierclass', 'staticcall'));
$this->smarty->assign('foo', 1);
$this->assertEquals("mymodifier static 1", $this->smarty->fetch('testModifier_RegisteredStatic.tpl'));
}
@@ -90,7 +90,7 @@ class ModifierTest extends PHPUnit_Smarty
public function testModifierRegisteredMethodCall()
{
$obj = new testmodifierclass();
- $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER, 'testmodifier', array($obj, 'method'));
+ $this->smarty->registerPlugin(\Smarty\Smarty::PLUGIN_MODIFIER, 'testmodifier', array($obj, 'method'));
$this->smarty->assign('foo', 3);
$this->assertEquals("mymodifier method 3", $this->smarty->fetch('testModifier_RegisteredMethod.tpl'));
}
@@ -100,7 +100,7 @@ class ModifierTest extends PHPUnit_Smarty
*/
public function testUnknownModifier()
{
- $this->expectException('SmartyCompilerException');
+ $this->expectException(\Smarty\CompilerException::class);
$this->expectExceptionMessage('unknown modifier \'unknown\'');
$this->smarty->fetch('eval:{"hello world"|unknown}');
}
@@ -110,7 +110,7 @@ class ModifierTest extends PHPUnit_Smarty
*/
public function testDefaultModifier()
{
- $this->smarty->default_modifiers = array('escape');
+ $this->smarty->setDefaultModifiers(array('escape'));
$this->smarty->assign('foo', '<bar>');
$this->assertEquals('&lt;bar&gt;<bar>', $this->smarty->fetch('testModifier_Default.tpl'));
}
diff --git a/tests/UnitTests/TemplateSource/ValueTests/Objects/ObjectVariableTest.php b/tests/UnitTests/TemplateSource/ValueTests/Objects/ObjectVariableTest.php
index 502a2271..9be49105 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/Objects/ObjectVariableTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/Objects/ObjectVariableTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests object variables
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for object variable tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class ObjectVariableTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/PHPfunctions/PhpFunctionTest.php b/tests/UnitTests/TemplateSource/ValueTests/PHPfunctions/PhpFunctionTest.php
index cf8970c5..cfbb32bb 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/PHPfunctions/PhpFunctionTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/PHPfunctions/PhpFunctionTest.php
@@ -2,7 +2,7 @@
/**
* Smarty PHPunit tests of modifier
*
- * @package PHPunit
+
* @author Rodney Rehm
*/
@@ -11,9 +11,9 @@
*
*
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class PhpFunctionTest extends PHPUnit_Smarty
{
@@ -57,6 +57,7 @@ class PhpFunctionTest extends PHPUnit_Smarty
public function testEmpty2()
{
$this->smarty->disableSecurity();
+ $this->getSmarty()->registerPlugin(\Smarty\Smarty::PLUGIN_MODIFIER, 'pass', function ($v) { return $v; });
$this->smarty->assign('var', array(null,
false,
(int) 0,
@@ -78,6 +79,7 @@ class PhpFunctionTest extends PHPUnit_Smarty
public function testEmpty3()
{
$this->smarty->disableSecurity();
+ $this->getSmarty()->registerPlugin(\Smarty\Smarty::PLUGIN_FUNCTION, 'pass', function ($v) { return $v; });
$this->smarty->assign('var', array(true,
(int) 1,
(float) 0.1,
@@ -97,6 +99,7 @@ class PhpFunctionTest extends PHPUnit_Smarty
public function testEmpty4()
{
$this->smarty->disableSecurity();
+ $this->getSmarty()->registerPlugin(\Smarty\Smarty::PLUGIN_FUNCTION, 'pass', function ($v) { return $v; });
$this->smarty->assign('var', new TestIsset());
$expected = ' true , false , false , true , true , true , false ';
$this->assertEquals($expected, $this->smarty->fetch('string:{strip}{if empty($var->isNull)} true {else} false {/IF}
@@ -114,6 +117,7 @@ class PhpFunctionTest extends PHPUnit_Smarty
public function testIsset1()
{
$this->smarty->disableSecurity();
+ $this->getSmarty()->registerPlugin(\Smarty\Smarty::PLUGIN_MODIFIER, 'pass', function ($v) { return $v; });
$this->smarty->assign('isNull', null);
$this->smarty->assign('isSet', 1);
$this->smarty->assign('arr', array('isNull' => null, 'isSet' => 1));
@@ -135,6 +139,7 @@ class PhpFunctionTest extends PHPUnit_Smarty
{
$this->smarty->disableSecurity();
$this->smarty->assign('var', new TestIsset());
+ $this->smarty->registerPlugin(\Smarty\Smarty::PLUGIN_MODIFIER, 'pass', function ($v) { return $v; });
$expected = ' false , true , true , false , false , false , true ';
$this->assertEquals($expected, $this->smarty->fetch('string:{strip}{if isset($var->isNull)} true {else} false {/IF}
,{if isset($var->isSet)} true {else} false {/IF}
@@ -155,6 +160,7 @@ class PhpFunctionTest extends PHPUnit_Smarty
public function testIsset3($strTemplate, $result)
{
$this->smarty->disableSecurity();
+ $this->smarty->registerPlugin(\Smarty\Smarty::PLUGIN_MODIFIER, 'intval', 'intval');
$this->smarty->assign('varobject', new TestIsset());
$this->smarty->assign('vararray', $vararray = array(
@@ -199,15 +205,6 @@ class PhpFunctionTest extends PHPUnit_Smarty
}
/**
- * @param mixed $v
- *
- * @return mixed
- */
-function pass($v) {
- return $v;
-}
-
-/**
* Class TestIsset
*/
class TestIsset {
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SingleQouted/SingleQuotedStringTest.php b/tests/UnitTests/TemplateSource/ValueTests/SingleQouted/SingleQuotedStringTest.php
index 02919d93..e9f3333f 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SingleQouted/SingleQuotedStringTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SingleQouted/SingleQuotedStringTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests single quoted strings
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for single quoted string tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class SingleQuotedStringTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Constant/SmartyConstantTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Constant/SmartyConstantTest.php
index 08002c64..26ba767e 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Constant/SmartyConstantTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Constant/SmartyConstantTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests {$smarty.constant.foo}
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for {$smarty.constant.foo} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class SmartyConstantTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Cookie/CookieTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Cookie/CookieTest.php
index 84bafb09..f54cd12c 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Cookie/CookieTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Cookie/CookieTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests {$smarty.cookies.foo}
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for $smarty.cookies.foo} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class CookieTest extends PHPUnit_Smarty
{
@@ -27,8 +27,8 @@ class CookieTest extends PHPUnit_Smarty
/**
* test cookies
*
- * @runInSeparateProcess
- * @preserveGlobalState disabled
+ *
+ *
* @dataProvider dataProvider
*/
public function testCookie($caching, $value) {
@@ -49,8 +49,8 @@ class CookieTest extends PHPUnit_Smarty
/**
* test cookies with modifier
*
- * @runInSeparateProcess
- * @preserveGlobalState disabled
+ *
+ *
* @dataProvider dataProviderModifier
*/
public function testCookieModifier($caching, $value, $result) {
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Delimiter/SmartyDelimiterTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Delimiter/SmartyDelimiterTest.php
index 3cb1de4a..47304b0d 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Delimiter/SmartyDelimiterTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Delimiter/SmartyDelimiterTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests {$smarty.ldelim} {$smarty.rdelim}
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for {$smarty.ldelim} {$smarty.rdelim} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class SmartyDelimiterTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Error/SmartyErrorTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Error/SmartyErrorTest.php
index 40f85e59..baf805a6 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Error/SmartyErrorTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Error/SmartyErrorTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests undefined Smarty special variable
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for undefined Smarty special variable tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class SmartyErrorTest extends PHPUnit_Smarty
{
@@ -28,8 +28,8 @@ class SmartyErrorTest extends PHPUnit_Smarty
* test undefined Smarty special variable
*/
public function testSmartyError() {
- $this->expectException('SmartyException');
+ $this->expectException(\Smarty\Exception::class);
$this->expectExceptionMessage('$smarty.foo is not defined');
- $this->assertEquals(Smarty::SMARTY_VERSION, $this->smarty->fetch('error.tpl'));
+ $this->assertEquals(\Smarty\Smarty::SMARTY_VERSION, $this->smarty->fetch('error.tpl'));
}
}
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Now/SmartyNowTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Now/SmartyNowTest.php
index 4e5f5f50..32116a7c 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Now/SmartyNowTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Now/SmartyNowTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests {$smarty.now}
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for {$smarty.now} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class SmartyNowTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Post/PostTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Post/PostTest.php
index b7204666..92bfea4a 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Post/PostTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Post/PostTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests {$smarty.post.foo}
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for {$smarty.post.foo} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class PostTest extends PHPUnit_Smarty
{
@@ -27,8 +27,8 @@ class PostTest extends PHPUnit_Smarty
/**
* test $_POST
*
- * @runInSeparateProcess
- * @preserveGlobalState disabled
+ *
+ *
* @dataProvider dataProvider
*/
public function testPost($caching, $value) {
@@ -40,8 +40,8 @@ class PostTest extends PHPUnit_Smarty
/**
* test $_POST with modifier
*
- * @runInSeparateProcess
- * @preserveGlobalState disabled
+ *
+ *
* @dataProvider dataProviderModifier
*/
public function testPostModifier($caching, $value, $result) {
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/SmartyTemplateObjectTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/SmartyTemplateObjectTest.php
index 0fb2fe38..1ee56beb 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/SmartyTemplateObjectTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/SmartyTemplateObjectTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests {$smarty.template_objects}
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for {$smarty.template_objects} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class SmartyTemplateObjectTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/templates/template_object.tpl b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/templates/template_object.tpl
index 08babe7e..d927d64b 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/templates/template_object.tpl
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/TemplateObject/templates/template_object.tpl
@@ -1 +1 @@
-{if $smarty.template_object instanceof Smarty_Internal_Template}okay{/if} \ No newline at end of file
+{if $smarty.template_object instanceof \Smarty\Template}okay{/if} \ No newline at end of file
diff --git a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Version/SmartyVersionTest.php b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Version/SmartyVersionTest.php
index 8e295824..efbc2dd6 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Version/SmartyVersionTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/SmartySpecialVars/Version/SmartyVersionTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests {$smarty.version}
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for {$smarty.version} tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class SmartyVersionTest extends PHPUnit_Smarty
{
@@ -29,6 +29,6 @@ class SmartyVersionTest extends PHPUnit_Smarty
*
*/
public function testSmartyVersion() {
- $this->assertEquals(Smarty::SMARTY_VERSION, $this->smarty->fetch('version.tpl'));
+ $this->assertEquals(\Smarty\Smarty::SMARTY_VERSION, $this->smarty->fetch('version.tpl'));
}
}
diff --git a/tests/UnitTests/TemplateSource/ValueTests/Variables/Stream/StreamVariableTest.php b/tests/UnitTests/TemplateSource/ValueTests/Variables/Stream/StreamVariableTest.php
index c832fc70..500dcc62 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/Variables/Stream/StreamVariableTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/Variables/Stream/StreamVariableTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests stream variables
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for stream variables tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class StreamVariableTest extends PHPUnit_Smarty
{
diff --git a/tests/UnitTests/TemplateSource/ValueTests/Variables/VariableVariable/VariableVariableTest.php b/tests/UnitTests/TemplateSource/ValueTests/Variables/VariableVariable/VariableVariableTest.php
index 84843262..997a342a 100644
--- a/tests/UnitTests/TemplateSource/ValueTests/Variables/VariableVariable/VariableVariableTest.php
+++ b/tests/UnitTests/TemplateSource/ValueTests/Variables/VariableVariable/VariableVariableTest.php
@@ -2,16 +2,16 @@
/**
* Smarty PHPunit tests variable variables
*
- * @package PHPunit
+
* @author Uwe Tews
*/
/**
* class for variable variables tests
*
- * @runTestsInSeparateProcess
- * @preserveGlobalState disabled
- * @backupStaticAttributes enabled
+ *
+ *
+ *
*/
class VariableVariableTest extends PHPUnit_Smarty
{