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'])) {

View file

@ -108,14 +108,6 @@ class DownloadControllerTest extends ControllerTest
public function testDownloadWithRtmpStream()
{
$this->markTestIncomplete('We need to find another RTMP video.');
$config = $this->container->get('config');
$config->setOptions(['stream' => true]);
$this->assertRequestIsOk(
'download',
['url' => 'http://www.rtvnh.nl/video/131946', 'format' => 'rtmp-264']
);
}
/**

View file

@ -479,16 +479,11 @@ class VideoTest extends ContainerTest
* @param string $format Format
*
* @return void
* @throws AlltubeLibraryException
* @dataProvider rtmpUrlProvider
*/
public function testGetRtmpStream(string $url, string $format)
{
$this->markTestIncomplete('We need to find another RTMP video.');
$video = new Video($this->downloader, $url, $format);
$this->assertStream($this->downloader->getRtmpStream($video));
}
/**