Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 061df29

Browse files
patrickdreyerstof
authored andcommitted
Using canBeUnset() to support the Behat/MinkExtension syntax for activating the wunit driver
1 parent 0833728 commit 061df29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Behat/YiiExtension/Extension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function load(array $config, ContainerBuilder $container)
5757
}
5858
$container->setParameter('behat.yii_extension.config_script', $config['config_script']);
5959

60-
if ($config['wunit']) {
60+
if (isset($config['wunit'])) {
6161
if (!class_exists('Behat\\Mink\\Driver\\WUnitDriver')) {
6262
throw new \RuntimeException(
6363
'Install WUnitDriver in order to activate wunit session.'
@@ -83,8 +83,8 @@ public function getConfig(ArrayNodeDefinition $builder)
8383
scalarNode('config_script')->
8484
isRequired()->
8585
end()->
86-
booleanNode('wunit')->
87-
defaultFalse()->
86+
arrayNode('wunit')->
87+
canBeUnset()->
8888
end()->
8989
end()
9090
;

0 commit comments

Comments
 (0)