-
Notifications
You must be signed in to change notification settings - Fork 609
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
Warning: preg_match(): Compilation failed: subpattern name is too long #872
Comments
The issue seems to be with one of your step definition, not with your feature file. Please run Behat in verbose mode (with |
Thanks for replying @stof.
Is my step definition too long? |
You are probably using a turnip notation ( |
@pamil so :argumentName can't be more than 32 character? There are any example to define it? or may be I should cut my :argumentName to be less than 32 character :D? |
And as the PHP documentation says:
So the |
To address this we would need to internally generate shorter names (or use numeric indexes) and then maintain a mapping of these names to the longer placeholder name. A short-term fix would be to throw a more verbose exception earlier before the regex is generated. |
@pamil: I'll just simply keep the name <=32 :). |
There is my .feature file:
But when i run
behat
it gave me PHP warning:Is any one got similar problem? Or whats wrong with my feature file?
The text was updated successfully, but these errors were encountered: