Skip to content
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

Added ability to mock "unsafe classes" #217

Merged
merged 1 commit into from
Mar 4, 2016
Merged

Added ability to mock "unsafe classes" #217

merged 1 commit into from
Mar 4, 2016

Conversation

mlively
Copy link
Collaborator

@mlively mlively commented Mar 4, 2016

This fixes #214

There are some issues with how some extensions work in terms of inheritance where you can never exactly match the method signature of what you are extending. In this case a strict error is thrown which often gets translated into a failed test in PHPUnit. I have added a whitelist of classes that will bypass strict error checking. Until a better solution is provided upstream:

php-memcached-dev/php-memcached#126

This fixes #214

There are some issues with how some extensions work in terms of inheritance where you can never exactly match the method signature of what you are extending. In this case a strict error is thrown which often gets translated into a failed test in PHPUnit. I have added a whitelist of classes that will bypass strict error checking. Until a better solution is provided upstream:

php-memcached-dev/php-memcached#126
mlively added a commit that referenced this pull request Mar 4, 2016
Added ability to mock "unsafe classes"
@mlively mlively merged commit 2202d36 into master Mar 4, 2016
@adoy adoy deleted the feature/214 branch January 24, 2022 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Declaration should be compatible with Memcached
1 participant