RusticiSoftware / TinCanPHP

PHP library for the Experience API (Tin Can API)
http://rusticisoftware.github.io/TinCanPHP/
Apache License 2.0
87 stars 78 forks source link

Fix testing PHP 7.0 #96

Open pondermatic opened 6 years ago

pondermatic commented 6 years ago
mdeboer commented 6 years ago

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.