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

Commit 0833728

Browse files
patrickdreyerstof
authored andcommitted
CHG: Make wunit a boolean value
1 parent 08df124 commit 0833728

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Behat/YiiExtension/Extension.php

Lines changed: 3 additions & 4 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 (isset($config['wunit'])) {
60+
if ($config['wunit']) {
6161
if (!class_exists('Behat\\Mink\\Driver\\WUnitDriver')) {
6262
throw new \RuntimeException(
6363
'Install WUnitDriver in order to activate wunit session.'
@@ -83,9 +83,8 @@ public function getConfig(ArrayNodeDefinition $builder)
8383
scalarNode('config_script')->
8484
isRequired()->
8585
end()->
86-
arrayNode('wunit')->
87-
children()->
88-
end()->
86+
booleanNode('wunit')->
87+
defaultFalse()->
8988
end()->
9089
end()
9190
;

0 commit comments

Comments
 (0)