PHPUnit 10-dev: previous version cache raises "Argument 2 passed to PHPUnit\Runner\DefaultTestResultCache::setStatus() must be an instance of PHPUnit\Framework\TestStatus\TestStatus, int given, called in ./vendor/phpunit/phpunit/src/Runner/DefaultTestResultCache.php on line 174"#4580
Closed
Slamdunk opened this issue
Jan 14, 2021
· 2 comments
· Fixed by #4614
After upgrading to PHPUnit 10-dev with a PHPUnit 9 cache present in .phpunit.result.cache, the run fails immediately
Current behavior
$ vendor/bin/phpunit
Argument 2 passed to PHPUnit\Runner\DefaultTestResultCache::setStatus() must be an instance
of PHPUnit\Framework\TestStatus\TestStatus, int given, called in
./vendor/phpunit/phpunit/src/Runner/DefaultTestResultCache.php on line 174
Expected behavior
I suggest to either:
Check the cache version before using it, and dismiss it if not matching with current runtime
Summary
After upgrading to PHPUnit 10-dev with a PHPUnit 9 cache present in
.phpunit.result.cache
, the run fails immediatelyCurrent behavior
Expected behavior
I suggest to either:
The text was updated successfully, but these errors were encountered: