mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
[Dep] Add PHPUnit\Framework\TestCase stub on target-repository bootstrap.php (#1924)
This commit is contained in:
parent
a7bdabc86a
commit
9d74e20acb
|
@ -2,8 +2,9 @@
|
|||
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace
|
||||
{
|
||||
// inspired by https://github.com/phpstan/phpstan/blob/master/bootstrap.php
|
||||
|
||||
spl_autoload_register(function (string $class): void {
|
||||
static $composerAutoloader;
|
||||
|
||||
|
@ -68,3 +69,14 @@ if (! interface_exists('BackedEnum')) {
|
|||
public static function tryFrom($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// @see https://github.com/rectorphp/rector/issues/6531
|
||||
namespace PHPUnit\Framework
|
||||
{
|
||||
if (! class_exists('PHPUnit\Framework\TestCase')) {
|
||||
abstract class TestCase
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user