X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fbehat%2Fmink-extension%2Fsrc%2FBehat%2FMinkExtension%2FServiceContainer%2FDriver%2FBrowserStackFactory.php;fp=vendor%2Fbehat%2Fmink-extension%2Fsrc%2FBehat%2FMinkExtension%2FServiceContainer%2FDriver%2FBrowserStackFactory.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=abf16b14d60f40dd4975c52806f1a26384da9f5a;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/behat/mink-extension/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserStackFactory.php b/vendor/behat/mink-extension/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserStackFactory.php deleted file mode 100644 index abf16b14d..000000000 --- a/vendor/behat/mink-extension/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserStackFactory.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Behat\MinkExtension\ServiceContainer\Driver; - -use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; - -class BrowserStackFactory extends Selenium2Factory -{ - /** - * {@inheritdoc} - */ - public function getDriverName() - { - return 'browser_stack'; - } - - /** - * {@inheritdoc} - */ - public function configure(ArrayNodeDefinition $builder) - { - $builder - ->children() - ->scalarNode('username')->defaultValue(getenv('BROWSERSTACK_USERNAME'))->end() - ->scalarNode('access_key')->defaultValue(getenv('BROWSERSTACK_ACCESS_KEY'))->end() - ->scalarNode('browser')->defaultValue('firefox')->end() - ->append($this->getCapabilitiesNode()) - ->end() - ; - } - - /** - * {@inheritdoc} - */ - public function buildDriver(array $config) - { - $config['wd_host'] = sprintf('%s:%s@hub.browserstack.com/wd/hub', $config['username'], $config['access_key']); - - return parent::buildDriver($config); - } - - protected function getCapabilitiesNode() - { - $node = parent::getCapabilitiesNode(); - - $node - ->children() - ->scalarNode('project')->end() - ->scalarNode('resolution')->end() - ->scalarNode('build')->info('will be set automatically based on the TRAVIS_JOB_NUMBER environment variable if available')->end() - ->scalarNode('os')->end() - ->scalarNode('os_version')->end() - ->scalarNode('device')->end() - ->booleanNode('browserstack-debug')->end() - ->booleanNode('browserstack-tunnel')->end() - ->booleanNode('emulator')->end() - ->end() - ; - - return $node; - } -}