mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11528] Use 'use' keyword to import classes to current scope
PHPBB3-11528
This commit is contained in:
parent
c26fa6a15b
commit
2d1a998003
1 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
use Symfony\Component\BrowserKit\CookieJar;
|
use Symfony\Component\BrowserKit\CookieJar;
|
||||||
|
use \Behat\Mink\Driver\Goutte\Client;
|
||||||
|
use \Behat\Mink\Driver\GoutteDriver;
|
||||||
|
|
||||||
class phpbb_functional_test_case extends phpbb_mink_test_case
|
class phpbb_functional_test_case extends phpbb_mink_test_case
|
||||||
{
|
{
|
||||||
|
@ -42,7 +44,7 @@ class phpbb_functional_test_case extends phpbb_mink_test_case
|
||||||
self::$root_url = self::$config['phpbb_functional_url'];
|
self::$root_url = self::$config['phpbb_functional_url'];
|
||||||
|
|
||||||
self::$cookieJar = new CookieJar;
|
self::$cookieJar = new CookieJar;
|
||||||
self::$client = new \Behat\Mink\Driver\Goutte\Client(array(), null, self::$cookieJar);
|
self::$client = new Client(array(), null, self::$cookieJar);
|
||||||
|
|
||||||
$client_options = array(
|
$client_options = array(
|
||||||
Guzzle\Http\Client::DISABLE_REDIRECTS => true,
|
Guzzle\Http\Client::DISABLE_REDIRECTS => true,
|
||||||
|
@ -57,7 +59,7 @@ class phpbb_functional_test_case extends phpbb_mink_test_case
|
||||||
// resource
|
// resource
|
||||||
self::$client->getClient()->getCurlMulti()->reset(true);
|
self::$client->getClient()->getCurlMulti()->reset(true);
|
||||||
|
|
||||||
self::$driver = new \Behat\Mink\Driver\GoutteDriver(self::$client);
|
self::$driver = new GoutteDriver(self::$client);
|
||||||
|
|
||||||
// Important: this is used both for installation and by
|
// Important: this is used both for installation and by
|
||||||
// test cases for querying the tables.
|
// test cases for querying the tables.
|
||||||
|
|
Loading…
Add table
Reference in a new issue