mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-13 12:33:52 +01:00
commit
7bf76c92ea
@ -21,7 +21,6 @@
|
||||
"phpstan/phpdoc-parser": "^0.3.5",
|
||||
"phpstan/phpstan": "^0.11.13",
|
||||
"phpstan/phpstan-phpunit": "^0.11.2",
|
||||
"ramsey/uuid": "^3.8",
|
||||
"sebastian/diff": "^3.0",
|
||||
"symfony/console": "^3.4|^4.2",
|
||||
"symfony/dependency-injection": "^3.4|^4.2",
|
||||
|
10
stubs/PHPUnit/PHPUnit_Framework_TestCase.php
Normal file
10
stubs/PHPUnit/PHPUnit_Framework_TestCase.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
if (class_exists('PHPUnit_Framework_TestCase')) {
|
||||
return;
|
||||
}
|
||||
|
||||
abstract class PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
}
|
@ -6,7 +6,16 @@ if (class_exists('Ramsey\Uuid\Uuid')) {
|
||||
return;
|
||||
}
|
||||
|
||||
class Uuid
|
||||
class Uuid implements UuidInterface
|
||||
{
|
||||
public static function uuid4(): self
|
||||
{
|
||||
return new Uuid();
|
||||
}
|
||||
|
||||
public function toString()
|
||||
{
|
||||
// dummy value
|
||||
return '4398dda9-3bc0-45ec-ae81-3d81a86ad84a';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user