mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
remove E_DEPRECATED for PHP 5.2 compatibility
restore @runTestsInSeparateProcess
This commit is contained in:
@@ -88,7 +88,7 @@ class PHPUnit_Smarty extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public static function setUpBeforeClass()
|
public static function setUpBeforeClass()
|
||||||
{
|
{
|
||||||
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
|
error_reporting(E_ALL & ~E_STRICT);
|
||||||
self::$init = true;
|
self::$init = true;
|
||||||
self::$pluginsdir =self::getSmartyPluginsDir();
|
self::$pluginsdir =self::getSmartyPluginsDir();
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
dummy
|
@@ -0,0 +1 @@
|
|||||||
|
dummy
|
@@ -166,7 +166,7 @@ class SecurityTest extends PHPUnit_Smarty
|
|||||||
*/
|
*/
|
||||||
public function testAllowedModifier1()
|
public function testAllowedModifier1()
|
||||||
{
|
{
|
||||||
error_reporting(E_ALL & ~E_DEPRECATED | E_STRICT);
|
error_reporting(E_ALL & E_STRICT);
|
||||||
$this->smarty->security_policy->allowed_modifiers = array('capitalize');
|
$this->smarty->security_policy->allowed_modifiers = array('capitalize');
|
||||||
$this->assertEquals("Hello World", $this->smarty->fetch('eval:{"hello world"|capitalize}'));
|
$this->assertEquals("Hello World", $this->smarty->fetch('eval:{"hello world"|capitalize}'));
|
||||||
error_reporting(E_ALL | E_STRICT);
|
error_reporting(E_ALL | E_STRICT);
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
dummy
|
@@ -0,0 +1 @@
|
|||||||
|
dummy
|
@@ -18,7 +18,6 @@ class PluginModifierCapitalizeTest extends PHPUnit_Smarty
|
|||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$this->setUpSmarty(dirname(__FILE__));
|
$this->setUpSmarty(dirname(__FILE__));
|
||||||
error_reporting(E_ALL & ~E_DEPRECATED | E_STRICT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDefault()
|
public function testDefault()
|
||||||
|
Reference in New Issue
Block a user