-
Notifications
You must be signed in to change notification settings - Fork 134
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
Better exception message for when default value is an enum #1380
Conversation
])); | ||
$classInfo = $reflector->reflectClass('Bat'); | ||
|
||
$this->expectException(UnableToCompileNode::class); |
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.
We should check at least part of the exception message in this test: it seems like the mutation test reports no behavioral change (removes throw
and is happy with that), which indicates that an assertion is to be added here
Sorry for a delay, I was working remotely for a couple of days. I added a message check. You can look at it. |
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.
CS issues fixable with some minimal assertion improvements (by removing try-catch)
I think the failures are unrelated to your patch, and instead depend on shivammathur/setup-php#799 |
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.
LGTM, thanks @forrest79!
I will re-run tests and merge once the upstream issue with the CI pipeline is resolved, then releasing 💪
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.
Excellent, thanks @forrest79!
This solves an issue #1376.