diff --git a/phpBB/phpbb/di/extension/core.php b/phpBB/phpbb/di/extension/core.php index 41b510ba2b..d6679f1c61 100644 --- a/phpBB/phpbb/di/extension/core.php +++ b/phpBB/phpbb/di/extension/core.php @@ -62,7 +62,7 @@ class core extends Extension if ($config['require_dev_dependencies']) { - if (!class_exists('Goutte\Client', true)) + if (!class_exists('Symfony\Component\BrowserKit\HttpBrowser')) { trigger_error( 'Composer development dependencies have not been set up for the ' . $container->getParameter('core.environment') . ' environment yet, run ' . diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 1ef7ac6407..189a94328b 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -11,12 +11,17 @@ * */ use Symfony\Component\BrowserKit\CookieJar; +use Symfony\Component\BrowserKit\HttpBrowser; +use Symfony\Component\HttpClient\HttpClient; require_once __DIR__ . '/mock/phpbb_mock_null_installer_task.php'; class phpbb_functional_test_case extends phpbb_test_case { - /** @var \Goutte\Client */ + /** @var HttpClient */ + protected static $http_client; + + /** @var HttpBrowser */ protected static $client; protected static $cookieJar; protected static $root_url; @@ -89,7 +94,8 @@ class phpbb_functional_test_case extends phpbb_test_case $this->bootstrap(); self::$cookieJar = new CookieJar; - self::$client = new Goutte\Client(array(), null, self::$cookieJar); + self::$http_client = HttpClient::create(); + self::$client = new HttpBrowser(self::$http_client, null, self::$cookieJar); // Clear the language array so that things // that were added in other tests are gone