mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/9855] Make tests run under PHPUnit 3.5.
PHPBB3-9855
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user