-
-
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
assertObjectHasProperty() and assertObjectNotHasProperty() #5229
assertObjectHasProperty() and assertObjectNotHasProperty() #5229
Conversation
I am open to the idea and will review this PR as soon as I find the time.
PHPUnit 9 is closed for additions. |
Did you add |
Yeah, I actually just fetched the old classes from 9 and renamed them. Have gone through the code now and removed ClassHasProperty, and added the two new functions to Functions.php. |
Can you please fix the coding guidelines and type checker issues and squash your changes into a single commit when you're done? Thanks! |
Codecov Report
@@ Coverage Diff @@
## main #5229 +/- ##
============================================
+ Coverage 81.30% 81.33% +0.02%
- Complexity 5853 5863 +10
============================================
Files 629 630 +1
Lines 18544 18578 +34
============================================
+ Hits 15078 15110 +32
- Misses 3466 3468 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Added PR for PhpUnit 10.0. Still not sure if you accept the feature request at all, but then the PR is at least here.
If accepted, I can try to make a "small-as-possible" change for PhpUnit 9 so we can get rid of the deprecation warnings. Just add the new methods and let them call the old methods or something.
If you don't want the feature, then it is OK, but then I will probably add the code in our codebase instead, because we cannot live without them in our API tests 😅
Fix #5220