Upgrade phpunit to 9.5
So we stop depending on the unmaintained php-token-stream
This commit is contained in:
parent
60f924f4bf
commit
55db198d39
6 changed files with 919 additions and 476 deletions
|
@ -50,7 +50,7 @@
|
|||
"php-mock/php-mock-mockery": "^1.3",
|
||||
"phpro/grumphp": "^1.3",
|
||||
"phpstan/phpstan": "^0.12.72",
|
||||
"phpunit/phpunit": "^8.4",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"smarty-gettext/smarty-gettext": "^1.6",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"symfony/error-handler": "^5.0",
|
||||
|
|
1363
composer.lock
generated
1363
composer.lock
generated
File diff suppressed because it is too large
Load diff
11
phpunit.xml
11
phpunit.xml
|
@ -1,10 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<phpunit bootstrap="tests/bootstrap.php">
|
||||
<filter>
|
||||
<whitelist>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
||||
<coverage>
|
||||
<include>
|
||||
<directory>classes/</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</include>
|
||||
</coverage>
|
||||
<testsuites>
|
||||
<testsuite name="Tests">
|
||||
<directory>tests/</directory>
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
|
@ -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']
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue