Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths defined in config.yml are scalar #1

Closed
halfnelson opened this issue Mar 1, 2011 · 1 comment
Closed

Paths defined in config.yml are scalar #1

halfnelson opened this issue Mar 1, 2011 · 1 comment

Comments

@halfnelson
Copy link

I am trying to add multiple step paths by editing the config.yml but it will not accept a list of paths as the config reader only accepts a scalar for the value (even though it is treated as an array internally)

I am trying to resurrect sfBehatPlugin and am having trouble telling it where both my step definitions are and the plugins step definitions.

scalarNode('steps')->
defaultValue('%behat.paths.base%/steps')->
end()->

@everzet
Copy link
Member

everzet commented Mar 19, 2011

fixed in develop. will be in next release!

@everzet everzet closed this as completed Mar 19, 2011
wouterj pushed a commit to wouterj/Behat that referenced this issue Jul 1, 2014
Changed the regex delimiter for "The url should match"
everzet pushed a commit that referenced this issue Mar 31, 2016
ciaranmcnulty pushed a commit that referenced this issue Aug 6, 2018
Handle Scrutinizer advice.
gabfr pushed a commit to gabfr/Behat that referenced this issue Jan 2, 2020
pamil added a commit that referenced this issue Jun 18, 2020
This PR was merged into the 3.8.x-dev branch.

Discussion
----------

I added "return 0" to fix this error message:

```
$ vendor/bin/behat --debug

behat version 3.7.0

--- configuration
    environment variable (BEHAT_PARAMS): none
    configuration file: /home/jawira/PhpstormProjects/xxxxxxxx/behat.yml

--- extensions
    extensions loaded: api_extension

PHP Fatal error:  Uncaught TypeError: Return value of "Behat\Testwork\Cli\DebugCommand::execute()" must be of the type int, NULL returned. in /home/jawira/PhpstormProjects/xxxxxxxx/vendor/symfony/console/Command/Command.php:258
Stack trace:
#0 /home/jawira/PhpstormProjects/xxxxxxxx/vendor/symfony/console/Application.php(912): Symfony\Component\Console\Command\Command->run()
#1 /home/jawira/PhpstormProjects/xxxxxxxx/vendor/symfony/console/Application.php(264): Symfony\Component\Console\Application->doRunCommand()
#2 /home/jawira/PhpstormProjects/xxxxxxxx/vendor/behat/behat/src/Behat/Testwork/Cli/Application.php(124): Symfony\Component\Console\Application->doRun()
#3 /home/jawira/PhpstormProjects/xxxxxxxx/vendor/symfony/console/Application.php(140): Behat\Testwork\Cli\Application->doRun()
#4 /home/jawira/PhpstormProjects/xxxxxxxx/vendor/behat/behat/bin/behat(34): Symfony\Component\Console\Application->run()
#5 {main}
  thrown in /home/jawira/PhpstormProjects/xxxxxxxx/vendor/symfony/console/Command/Command.php on line 258
```

Commits
-------

48a3636 Add "return 0" in DebugCommand.php
902b3c6 Add debug test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants