-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use namespaced TestCase #240
Use namespaced TestCase #240
Conversation
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.
Thanks for your contribution! Just one question.
@@ -14,7 +14,7 @@ | |||
"php": ">=5.3.0" | |||
}, | |||
"require-dev": { | |||
"phpunit/phpunit": "~4 | ~5", | |||
"phpunit/phpunit": "^4.8.35 | ^5.7", |
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.
Am I right that you're using such specific versions because it's only in these (and above) that the PHPUnit files are in namespaces?
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.
yeah, the forward compatibility layer was backported in the 4.8 branch for the 4.8.35 release. Older 4.8 versions don't have it.
Technically, PHPUnit 5.5+ has the new classes, but anything before 5.7 in the 5.x branch is unmaintained anyway.
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.
thanks for answering @stof
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.
Thanks both.
Merged! Thanks again, @MarioBlazek |
Thank you @sampart |
This PR resolves:
PHPUnit\Framework\TestCase
rather thanPHPUnit_Framework_TestCase