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

@@ -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)
{