Skip to content

Commit

Permalink
[ticket/10981] Added goutte via composer
Browse files Browse the repository at this point in the history
composer.phar added and autoloaded before tests

PHPBB3-10981
  • Loading branch information
Fyorl committed Jul 16, 2012
1 parent 8f5182b commit 797ee16
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 2 deletions.
Binary file added composer.phar
Binary file not shown.
6 changes: 6 additions & 0 deletions phpBB/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"minimum-stability": "beta",
"require-dev": {
"fabpot/goutte": "1.0.x-dev"
}
}
55 changes: 55 additions & 0 deletions phpBB/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,20 @@

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';
}
2 changes: 0 additions & 2 deletions tests/test_framework/phpbb_functional_test_case.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ static public function setUpBeforeClass()
{
self::markTestSkipped('phar extension is not loaded');
}

require_once 'phar://' . __DIR__ . '/../../vendor/goutte.phar';
}

public function setUp()
Expand Down
Binary file removed vendor/goutte.phar
Binary file not shown.

0 comments on commit 797ee16

Please sign in to comment.