Closed anomiex closed 3 years ago
Please add "php": "^5.6.20 || ^7.0 || ^8.0",
Also this to CI
run: "composer require --no-interaction --no-progress --no-suggest --prefer-lowest --dev 'phpunit/phpunit:^6.5 || ^7.5 || ^9.0'"
phar-io/manifest
should be added to that line
Can't do lowest right now either, apparently
@anomiex Yes you can, just add that package to CI
Thanks for that @anomiex .
I've set up this PR so we can make sure everything will work
Can't do lowest right now either, apparently
@anomiex Yes you can, just add that package to CI
I'm going to update the dependencies in a separate PR (#42).
I've set up this PR so we can make sure everything will work
Looks like they do, except for the PHP 8 test which was failing already (and getting that passing is what prompted me to do this 😀).
PHPUnit doesn't support PHP 8 until version 9.0, so we need to be compatible with that while still maintaining compatibility with PHPUnit 5.7.
Fortunately the only thing WorDBLess\BaseTestCase does that's not compatible with both 5.7 and 9.0 is its use of
setUp
andtearDown
, and we can work around that by using@before
and@after
instead of overriding those methods.Also this adds some tests to verify that the
@before
and@after
methods are still called even if a subclass overridessetUp
/tearDown
or supplies its own@before
/@after
.