diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2014-06-14 18:59:38 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2014-06-23 01:26:18 +0530 |
commit | 2d1a9980034ef40514fc310a065aa442c33b89a8 (patch) | |
tree | d707adb1db7121e1909a90ae33e929ab4dc9cd9b /tests/test_framework | |
parent | c26fa6a15b716dcf43d063b41ec5d646fc115e19 (diff) | |
download | forums-2d1a9980034ef40514fc310a065aa442c33b89a8.tar forums-2d1a9980034ef40514fc310a065aa442c33b89a8.tar.gz forums-2d1a9980034ef40514fc310a065aa442c33b89a8.tar.bz2 forums-2d1a9980034ef40514fc310a065aa442c33b89a8.tar.xz forums-2d1a9980034ef40514fc310a065aa442c33b89a8.zip |
[ticket/11528] Use 'use' keyword to import classes to current scope
PHPBB3-11528
Diffstat (limited to 'tests/test_framework')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 5e1cf9b31f..2f0b0a3db0 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -11,6 +11,8 @@ * */ 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 { @@ -42,7 +44,7 @@ class phpbb_functional_test_case extends phpbb_mink_test_case self::$root_url = self::$config['phpbb_functional_url']; 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( Guzzle\Http\Client::DISABLE_REDIRECTS => true, @@ -57,7 +59,7 @@ class phpbb_functional_test_case extends phpbb_mink_test_case // resource 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 // test cases for querying the tables. |