mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9855] Make tests run under PHPUnit 3.5.
PHPBB3-9855
This commit is contained in:
parent
41245f9f7a
commit
e195c91b1d
1 changed files with 8 additions and 1 deletions
|
@ -28,7 +28,14 @@ require_once 'network/all_tests.php';
|
||||||
require_once 'random/all_tests.php';
|
require_once 'random/all_tests.php';
|
||||||
|
|
||||||
// exclude the test directory from code coverage reports
|
// exclude the test directory from code coverage reports
|
||||||
PHPUnit_Util_Filter::addDirectoryToFilter('./');
|
if (version_compare(PHPUnit_Runner_Version::id(), '3.5.0') >= 0)
|
||||||
|
{
|
||||||
|
PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist('./');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PHPUnit_Util_Filter::addDirectoryToFilter('./');
|
||||||
|
}
|
||||||
|
|
||||||
class phpbb_all_tests
|
class phpbb_all_tests
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue