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

run behat test failed #390

Closed
superjavason opened this issue Oct 10, 2013 · 4 comments
Closed

run behat test failed #390

superjavason opened this issue Oct 10, 2013 · 4 comments

Comments

@superjavason
Copy link

when i run behat test , i got PHP Fatal error: Maximum function nesting level of '100' reached, aborting!, can anyone tell me how to fix it? thanks

─[0] <git:(master✱)> ./bin/behat                                    
@addressing
Feature: Countries and provinces
    In order to create tax and shipping zones
    As a store owner
    I want to be able to manage countries and their provinces

  Background:                             # features/backend/countries.feature:7
PHP Fatal error:  Maximum function nesting level of '100' reached, aborting! in /Users/superjavason/myworks/sylius/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php on line 109
@stloyd
Copy link
Contributor

stloyd commented Oct 11, 2013

You need to disable xdebug when running behat tests to prevent such error and speed-up overall process.

@superjavason
Copy link
Author

thanks @stloyd , it works

@sampart
Copy link

sampart commented Jan 6, 2015

Do you have any more information about why behat and xdebug conflict in this way? In particular, I'm wondering whether there's another solution other than disabling xdebug.

@ghost
Copy link

ghost commented Jan 6, 2015

You can set xdebug.max_nesting_level=1000 in /etc/php5/conf.d/20-xdebug.ini.
This is not specific to behat as some console commands can trigger this error too.

pamil pushed a commit to pamil/Sylius that referenced this issue Mar 21, 2016
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

3 participants