Upgrade phpunit to 9.5

So we stop depending on the unmaintained php-token-stream
This commit is contained in:
Pierre Rudloff 2021-10-17 21:01:55 +02:00
parent 60f924f4bf
commit 55db198d39
6 changed files with 919 additions and 476 deletions

View file

@ -7,6 +7,7 @@
namespace Alltube\Test;
use PHPUnit\Framework\TestCase;
use PHPUnit\Util\Test;
/**
* Abstract class used by every test.
@ -37,7 +38,10 @@ abstract class BaseTest extends TestCase
*/
protected function checkRequirements()
{
$annotations = $this->getAnnotations();
$annotations = Test::parseTestMethodAnnotations(
static::class,
$this->getName()
);
$requires = [];
if (isset($annotations['class']['requires'])) {