-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Infinite recursion when data provider provides recursive array #5614
Comments
You are testing with PHPUnit 10.0.0 which is not supported anymore. Do you encounter the same issue with PHPUnit 10.5.2? |
10.0 is the first version having this bug (9.6 seems working fine). From my experiments, it looks like all the versions |
|
This happens in We do not need this code anymore in PHPUnit 11 as data providers must be static in PHPUnit 11 and therefore can no longer create mock objects. So in PHPUnit 11 this problem will be gone. As for PHPUnit 10, I do not considers recursive arrays important enough (IMO, they are an edge case) to spend time on fixing the implementation of |
See #5615 |
Summary
When
@dataProvider
method tries to return recursive array, it always fails with SEGFAULT.Current behavior
Segmentation fault.
How to reproduce
Expected behavior
The test should pass
The text was updated successfully, but these errors were encountered: