Cleaned the ZombieDriver configuration

The ZombieDriver expects a single argument when passing a ZombieServer,
and it ignores any subsequent argument. Thus, it never deals with a
Connection itself (the server does).
Closes #23
This commit is contained in:
Christophe Coevoet
2014-01-18 11:13:51 +01:00
parent 8021fc626b
commit c1336bee32

View File

@@ -40,7 +40,6 @@ class ZombieFactory implements DriverFactory
->children() ->children()
->scalarNode('host')->defaultValue('127.0.0.1')->end() ->scalarNode('host')->defaultValue('127.0.0.1')->end()
->scalarNode('port')->defaultValue(8124)->end() ->scalarNode('port')->defaultValue(8124)->end()
->booleanNode('auto_server')->defaultTrue()->end()
->scalarNode('node_bin')->defaultValue('node')->end() ->scalarNode('node_bin')->defaultValue('node')->end()
->scalarNode('server_path')->defaultNull()->end() ->scalarNode('server_path')->defaultNull()->end()
->scalarNode('threshold')->defaultValue(2000000)->end() ->scalarNode('threshold')->defaultValue(2000000)->end()
@@ -69,11 +68,6 @@ class ZombieFactory implements DriverFactory
$config['threshold'], $config['threshold'],
$config['node_modules_path'], $config['node_modules_path'],
)), )),
new Definition('Behat\Mink\Driver\NodeJS\Connection', array(
$config['host'],
$config['port'],
)),
$config['auto_server'],
)); ));
} }
} }