aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bootstrap.php
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-07-16 17:33:05 +0100
committerFyorl <gaelreth@gmail.com>2012-07-16 17:52:03 +0100
commit797ee16eaf2e8dc562185cd940351bcfd311cf53 (patch)
tree2b1802004926689b92f6372300bb3efd26d44951 /tests/bootstrap.php
parent8f5182bf84399c52a23498a597ac907b6fba9ef5 (diff)
downloadforums-797ee16eaf2e8dc562185cd940351bcfd311cf53.tar
forums-797ee16eaf2e8dc562185cd940351bcfd311cf53.tar.gz
forums-797ee16eaf2e8dc562185cd940351bcfd311cf53.tar.bz2
forums-797ee16eaf2e8dc562185cd940351bcfd311cf53.tar.xz
forums-797ee16eaf2e8dc562185cd940351bcfd311cf53.zip
[ticket/10981] Added goutte via composer
composer.phar added and autoloaded before tests PHPBB3-10981
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index d6c5d25bc8..d687db622a 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -22,5 +22,20 @@ require_once 'test_framework/phpbb_database_test_connection_manager.php';
if (version_compare(PHP_VERSION, '5.3.0-dev', '>='))
{
+ if (getenv('PHPBB_NO_COMPOSER_AUTOLOAD'))
+ {
+ if (getenv('PHPBB_AUTOLOAD'))
+ {
+ require(getenv('PHPBB_AUTOLOAD'));
+ }
+ }
+ else
+ {
+ if (!file_exists($phpbb_root_path . 'vendor/autoload.php'))
+ {
+ trigger_error('You have not set up composer dependencies. See http://getcomposer.org/.', E_USER_ERROR);
+ }
+ require($phpbb_root_path . 'vendor/autoload.php');
+ }
require_once 'test_framework/phpbb_functional_test_case.php';
}