-
Notifications
You must be signed in to change notification settings - Fork 21
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
add Dont/ToString #19
Conversation
The problem here is to test the exception when an exception is not allowed to be thrown 🤔 |
bc779e6
to
b7a061d
Compare
@OskarStark bump |
b7a061d
to
240ca05
Compare
Done ✅ |
9e1a97d
to
c95d945
Compare
I bumped Travis too, another option would be to skip the test for lower php versions |
Meh, feasible, but still a hack |
*/ | ||
public static function fromAttemptedToString($object) : self | ||
{ | ||
if (! is_object($object)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can this particular scenario be reached? Also, contradiction between docblock and this check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh I copy pasted this from DontClone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed cfb3dda
ERROR; | ||
|
||
/** | ||
* @param object $object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this to the type declaration
I am fine with 7.4 only 👍 |
c95d945
to
cfb3dda
Compare
Hmm, |
cfb3dda
to
e1735f8
Compare
@OskarStark I think we need to see what the uncovered code is... Potentially false positive in infection |
Any idea how I can achieve that? |
e1735f8
to
56b91b1
Compare
@Ocramius can you please help me fixing this one and get it merged? |
@OskarStark try running the mutation test framework locally (or change it to print the log to |
Ported and merged in #32 👍 |
Fixes #18