1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13325] Make installing composer dependencies in tests folder optional.

Make phpbb_ui_test_case available unconditionally. Nothing depends on 5.3.19
here. Remove __init__ include. Composer classmap autoloading ensures classes
can be loaded.

PHPBB3-13325
This commit is contained in:
Andreas Fischer
2014-11-12 20:34:36 +01:00
parent 8df63a4499
commit 1e4ff6105a
2 changed files with 16 additions and 3 deletions

View File

@@ -33,8 +33,9 @@ require_once 'test_framework/phpbb_test_case.php';
require_once 'test_framework/phpbb_database_test_case.php';
require_once 'test_framework/phpbb_database_test_connection_manager.php';
require_once 'test_framework/phpbb_functional_test_case.php';
require_once 'test_framework/phpbb_ui_test_case.php';
if (version_compare(PHP_VERSION,'5.3.19', ">="))
if (version_compare(PHP_VERSION, '5.3.19', ">=") && file_exists(__DIR__ . '/vendor/autoload.php'))
{
require_once 'test_framework/phpbb_ui_test_case.php';
require_once __DIR__ . '/vendor/autoload.php';
}