-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Fix PHPUnit deprecations #969
Conversation
add4baf
to
62c2914
Compare
@@ -193,13 +192,16 @@ static function () use ($test) { | |||
self::assertSame('publicAssociationValue', $this->lazyObject->publicAssociation); | |||
} | |||
|
|||
/** | |||
* @requires PHP >= 7.2 |
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.
expectNotice
does not exist in PHPUnit running on 7.1. I figured the test can be skipped as this is tested in higher versions anyway but I can also check for expectNotice
existence and conditionally call old method.
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.
I can also check for
expectNotice
existence and conditionally call old method.
I'd prefer that. You could also polyfill expectNotice
with a trait.
For 3.3.x since it affects the test suite only? |
62c2914
to
457b513
Compare
Thanks! |
As per title :)