aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_test_case.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-01-07 01:39:18 +0100
committerIgor Wiedler <igor@wiedler.ch>2011-01-07 01:39:59 +0100
commit14a84cf89cd41da36545f5f04348c49d4eadfb45 (patch)
treeb04a5988c982b8b367697f03bde3f20ace7d022c /tests/test_framework/phpbb_test_case.php
parentda4617b14b11ade6f664b8c1ab94e3aeb5b7428d (diff)
parent5b752a2fed82f27cb1e383583dc4ccb87f7e12e5 (diff)
downloadforums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar
forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar.gz
forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar.bz2
forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.tar.xz
forums-14a84cf89cd41da36545f5f04348c49d4eadfb45.zip
Merge branch 'develop-olympus' into develop
This commit also ports all ascraeus tests to the new format. Conflicts: tests/all_tests.php tests/network/all_tests.php tests/request/all_tests.php tests/request/request_var.php tests/template/templates/includephp.html
Diffstat (limited to 'tests/test_framework/phpbb_test_case.php')
-rw-r--r--tests/test_framework/phpbb_test_case.php15
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)