remove E_DEPRECATED for PHP 5.2 compatibility

restore @runTestsInSeparateProcess
This commit is contained in:
Uwe Tews
2017-10-18 12:59:55 +02:00
parent 37288b44e0
commit 507b96a571
13 changed files with 20 additions and 17 deletions

View File

@@ -88,7 +88,7 @@ class PHPUnit_Smarty extends PHPUnit_Framework_TestCase
*/
public static function setUpBeforeClass()
{
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
error_reporting(E_ALL & ~E_STRICT);
self::$init = true;
self::$pluginsdir =self::getSmartyPluginsDir();
}

View File

@@ -0,0 +1 @@
dummy

View File

@@ -166,7 +166,7 @@ class SecurityTest extends PHPUnit_Smarty
*/
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->assertEquals("Hello World", $this->smarty->fetch('eval:{"hello world"|capitalize}'));
error_reporting(E_ALL | E_STRICT);

View File

@@ -0,0 +1 @@
dummy

View File

@@ -18,7 +18,6 @@ class PluginModifierCapitalizeTest extends PHPUnit_Smarty
public function setUp()
{
$this->setUpSmarty(dirname(__FILE__));
error_reporting(E_ALL & ~E_DEPRECATED | E_STRICT);
}
public function testDefault()