mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 08:50:50 +00:00
include stubs in tests (#5565)
This commit is contained in:
parent
5976af5b01
commit
30ec07b6ac
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user