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

Fix ContextTest comparison of ContextActivities signatures. #93

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

pondermatic
Copy link

The grouping array was sent as argument 2 to the $contextActivities2 constructor. ContextActivities->__construct() only takes one argument and will not assign ANY properties if there is not exactly one argument. This cause $contextActivities2 to have a different number of parents than $contextActivities1. I believe the intent of 'contextActivities only: mismatch' and 'full: contextActivities mismatch' cases is to detect differences in the number of contextActivities->grouping objects.

The grouping array was sent as argument 2 to the $contextActivities2 constructor. ContextActivities->__construct() only takes one argument and will not assign ANY properties if there is not exactly one argument. This cause $contextActivities2 to have a different number of parents than $contextActivities1. I believe the intent of 'contextActivities only: mismatch' and 'full: contextActivities mismatch' cases is to detect differences in the number of contextActivities->grouping objects.
This allows the tests to be run with PHPUnit 4.8.*, 5.4.* and 6.*.
'@stable' causes testing of PHP 7.0 to use PHPUnit 6.4, which breaks compatibility with PHPUnit 4.8 and 5.7.
If the HTTP header context option is an array of headers, HHVM sends an 'Array to string conversion' notice.
This reverts commit 4f3f941, reversing
changes made to 758a9c5.
@pondermatic
Copy link
Author

pondermatic commented Nov 19, 2017

#96 should be merged first in order to pass PHP 7 and HHVM tests.

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.

1 participant