diff --git a/doc/index.rst b/doc/index.rst index da802866..7888f0ad 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -198,7 +198,7 @@ with support for 7 drivers out of the box: the following parameters to avoid the validation error triggered by Guzzle: * For ``Guzzle 4`` or later: - + .. code-block:: yaml default: @@ -209,9 +209,9 @@ with support for 7 drivers out of the box: goutte: guzzle_parameters: verify: false - + * For ``Guzzle 3`` or earlier: - + .. code-block:: yaml default: @@ -298,6 +298,9 @@ with support for 7 drivers out of the box: zombie: # Specify the path to the node_modules directory. node_modules_path: /usr/local/lib/node_modules/ + options: + # Optionally specify zombie specific options like: + waitDuration: '5s' .. note:: diff --git a/src/Behat/MinkExtension/ServiceContainer/Driver/ZombieFactory.php b/src/Behat/MinkExtension/ServiceContainer/Driver/ZombieFactory.php index 9bafc84a..1b15914a 100644 --- a/src/Behat/MinkExtension/ServiceContainer/Driver/ZombieFactory.php +++ b/src/Behat/MinkExtension/ServiceContainer/Driver/ZombieFactory.php @@ -44,6 +44,10 @@ public function configure(ArrayNodeDefinition $builder) ->scalarNode('server_path')->defaultNull()->end() ->scalarNode('threshold')->defaultValue(2000000)->end() ->scalarNode('node_modules_path')->defaultValue('')->end() + ->arrayNode('options') + ->useAttributeAsKey('name') + ->prototype('scalar')->end() + ->end() ->end() ; } @@ -67,6 +71,7 @@ public function buildDriver(array $config) $config['server_path'], $config['threshold'], $config['node_modules_path'], + $config['options'], )), )); }