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 testing PHP 7.0 #96

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

Conversation

pondermatic
Copy link

  • Testing with PHP 7.0 was failing because PHPUnit 6.4 was used, which breaks compatibility with PHPUnit 4.8.* and 5.4.*.
  • Updated tests for PHP 7.1 change to handling "too few arguments" error.

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.
HHVM needs to fix 'Array to string conversion' issue instead of
TinCanPHP working around it.
@mdeboer
Copy link

mdeboer commented May 26, 2018

I think it's better to use symfony/phpunit-bridge which automatically downloads the correct phpunit version depending on the PHP version used.

Then if you're using (deprecated) methods only available in older or newer versions you can check for the phpunit version used and conditionally use the correct method. Usually no big changes are needed.

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.

2 participants