include stubs in tests (#5565)

This commit is contained in:
Tomas Votruba 2021-02-15 21:50:26 +01:00 committed by GitHub
parent 5976af5b01
commit 30ec07b6ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@
"nette/utils": "^3.2",
"nikic/php-parser": "^4.10.4",
"phpstan/phpdoc-parser": "^0.4.9",
"phpstan/phpstan": "0.12.69",
"phpstan/phpstan": "^0.12.76",
"phpstan/phpstan-phpunit": "^0.12.17",
"psr/simple-cache": "^1.0",
"sebastian/diff": "^4.0.4",

View File

@ -11,7 +11,6 @@ use Symplify\SmartFileSystem\SmartFileInfo;
final class CompleteDynamicPropertiesRectorTest extends AbstractRectorTestCase
{
/**
* @requires PHP 8.0
* @dataProvider provideData()
*/
public function test(SmartFileInfo $fileInfo): void

View File

@ -12,7 +12,6 @@ use Symplify\SmartFileSystem\SmartFileInfo;
final class RemoveDefaultArgumentValueRectorTest extends AbstractRectorTestCase
{
/**
* @requires PHP 8.0
* @dataProvider provideData()
*/
public function test(SmartFileInfo $fileInfo): void

View File

@ -12,7 +12,6 @@ use Symplify\SmartFileSystem\SmartFileInfo;
final class AddDefaultValueForUndefinedVariableRectorTest extends AbstractRectorTestCase
{
/**
* @requires PHP 8.0
* @dataProvider provideData()
*/
public function test(SmartFileInfo $fileInfo): void

View File

@ -7,6 +7,10 @@ use Tracy\Debugger;
require_once __DIR__ . '/../vendor/autoload.php';
// @see https://github.com/phpstan/phpstan/issues/4541#issuecomment-779434916
require_once 'phar://vendor/phpstan/phpstan/phpstan.phar/stubs/runtime/ReflectionUnionType.php';
require_once 'phar://vendor/phpstan/phpstan/phpstan.phar/stubs/runtime/Attribute.php';
// silent deprecations, since we test them
error_reporting(E_ALL ^ E_DEPRECATED);