-
-
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
Using @testWith
annotation may generate PHP Warning: Uninitialized string offset 0
#5802
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 10.5 #5802 +/- ##
=========================================
Coverage 90.15% 90.15%
- Complexity 6440 6441 +1
=========================================
Files 679 679
Lines 19545 19545
=========================================
Hits 17620 17620
Misses 1925 1925 ☔ View full report in Codecov by Sentry. |
@testWith
annotation may generate PHP Warning: Uninitialized string offset 0
btw: I never seen this feature used in the wild. I am not sure when to use it, if one can use a regular DataProvider instead. writing data for tests in a phpdoc comment, which will be parsed and mangled by a lot of other tools sounds like a footgun. |
Me neither.
This was proposed in #1151 and implemented in #1728. The argument was that "[data providers are] overcomplicated and require to[o] much code for most tasks". I should have said "No!" at the time, but did not :-(
At least this footgun will be gone once support for annotations in comments is removed. |
Without trying we wouldn't know. So it was a small failed experiment.. just look forward :-) |
Closes #5795