This PR allows PHPUnit 7 & 9 to be installed where possible (gated by the PHP version). This allows us to start testing with PHP 8, as only PHPUnit 9 has compatibility
The actual changes are pretty minor:
use the namespaced TestCase class as the PSR-0 version was removed
use @after annotations rather than tearDown as we can't match the interface on PHP 5
add compatibility for expected exception method name change between version 4 & 7/9
Goal
This PR allows PHPUnit 7 & 9 to be installed where possible (gated by the PHP version). This allows us to start testing with PHP 8, as only PHPUnit 9 has compatibility
The actual changes are pretty minor:
TestCase
class as the PSR-0 version was removed@after
annotations rather thantearDown
as we can't match the interface on PHP 5