diff options
author | Nils Adermann <naderman@naderman.de> | 2011-01-07 01:07:21 +0100 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-01-07 01:07:30 +0100 |
commit | b48b90977382e936a4d98981e55b02c8e574e07b (patch) | |
tree | 4e45242a7d8e3a42e452a4408d916bd000e61828 /tests/test_framework/phpbb_test_case.php | |
parent | b4f95deefc9d456c5a2d0f6338f6dcecc0829652 (diff) | |
download | forums-b48b90977382e936a4d98981e55b02c8e574e07b.tar forums-b48b90977382e936a4d98981e55b02c8e574e07b.tar.gz forums-b48b90977382e936a4d98981e55b02c8e574e07b.tar.bz2 forums-b48b90977382e936a4d98981e55b02c8e574e07b.tar.xz forums-b48b90977382e936a4d98981e55b02c8e574e07b.zip |
[task/phpunit-xml] Manually blacklisting a few PHPUnit classes from backups.
The blacklisting of these static variables is necessary because code coverage
will otherwise consume too much memory. The problem did not exist in earlier
PHPUnit versions because all classes beginning with PHPUnit are automatically
blacklisted, and code coverage as well as a few other internal classes were
still internal parts of PHPunit. These were now moved to PHP_ namespace,
causing the problem with backupStaticAttributes.
PHPBB3-9967
Diffstat (limited to 'tests/test_framework/phpbb_test_case.php')
-rw-r--r-- | tests/test_framework/phpbb_test_case.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_test_case.php b/tests/test_framework/phpbb_test_case.php index fe90d321dc..f189da3671 100644 --- a/tests/test_framework/phpbb_test_case.php +++ b/tests/test_framework/phpbb_test_case.php @@ -11,6 +11,21 @@ class phpbb_test_case extends PHPUnit_Framework_TestCase { protected $test_case_helpers; + public function __construct($name = NULL, array $data = array(), $dataName = '') + { + parent::__construct($name, $data, $dataName); + $this->backupStaticAttributesBlacklist += array( + 'PHP_CodeCoverage' => array('instance'), + 'PHP_CodeCoverage_Filter' => array('instance'), + 'PHP_CodeCoverage_Util' => array('ignoredLines', 'templateMethods'), + 'PHP_Timer' => array('startTimes',), + 'PHP_Token_Stream' => array('customTokens'), + 'PHP_Token_Stream_CachingFactory' => array('cache'), + + 'phpbb_database_test_case' => array('already_connected'), + ); + } + public function get_test_case_helpers() { if (!$this->test_case_helpers) |