mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-09 16:51:47 +01:00
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:
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Smarty PHPunit tests register/unregister function plugins
|
||||
*
|
||||
* @package PHPunit
|
||||
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
|
||||
@@ -11,9 +11,9 @@ use Smarty\Smarty;
|
||||
/**
|
||||
* class for register/unregister function plugins methods tests
|
||||
*
|
||||
* @runTestsInSeparateProcess
|
||||
*
|
||||
* @preserveGlobalState disabled
|
||||
* @backupStaticAttributes enabled
|
||||
*
|
||||
*
|
||||
*/
|
||||
class RegisterFunctionTest extends PHPUnit_Smarty
|
||||
@@ -61,8 +61,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
|
||||
/**
|
||||
* test registerPlugin method for function cached
|
||||
*
|
||||
* @runInSeparateProcess
|
||||
* @preserveGlobalState disabled
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function testRegisterFunctionCaching1()
|
||||
{
|
||||
@@ -78,8 +78,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
|
||||
/**
|
||||
* test registerPlugin method for function cached
|
||||
*
|
||||
* @runInSeparateProcess
|
||||
* @preserveGlobalState disabled
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function testRegisterFunctionCaching2()
|
||||
@@ -95,8 +95,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
|
||||
/**
|
||||
* test registerPlugin method for function not cached
|
||||
*
|
||||
* @runInSeparateProcess
|
||||
* @preserveGlobalState disabled
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function testRegisterFunctionCaching3()
|
||||
@@ -113,8 +113,8 @@ class RegisterFunctionTest extends PHPUnit_Smarty
|
||||
/**
|
||||
* test registerPlugin method for function not cached
|
||||
*
|
||||
* @runInSeparateProcess
|
||||
* @preserveGlobalState disabled
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function testRegisterFunctionCaching4()
|
||||
|
||||
Reference in New Issue
Block a user