mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Require phpstan and correct issues found up to level 2
* issues found by phpstan L0 * issues found by phpstan L1 * issues found by phpstan L2 in src/ * issues found by phpstan L2 in tests/
This commit is contained in:
@@ -2,33 +2,39 @@
|
||||
|
||||
namespace Ramsey\Uuid\Test\Generator;
|
||||
|
||||
use AspectMock\Test as AspectMock;
|
||||
use Mockery;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Ramsey\Uuid\BinaryUtils;
|
||||
use Ramsey\Uuid\Converter\TimeConverterInterface;
|
||||
use Ramsey\Uuid\Generator\DefaultTimeGenerator;
|
||||
use Ramsey\Uuid\Provider\NodeProviderInterface;
|
||||
use Ramsey\Uuid\Provider\TimeProviderInterface;
|
||||
use Ramsey\Uuid\Test\TestCase;
|
||||
use Mockery;
|
||||
use AspectMock\Test as AspectMock;
|
||||
|
||||
class DefaultTimeGeneratorTest extends TestCase
|
||||
{
|
||||
/** @var TimeProviderInterface */
|
||||
/** @var TimeProviderInterface&MockObject */
|
||||
private $timeProvider;
|
||||
/** @var NodeProviderInterface */
|
||||
|
||||
/** @var NodeProviderInterface&MockObject */
|
||||
private $nodeProvider;
|
||||
/** @var TimeConverterInterface */
|
||||
|
||||
/** @var TimeConverterInterface&MockObject */
|
||||
private $timeConverter;
|
||||
|
||||
/** @var string */
|
||||
private $nodeId = '122f80ca9e06';
|
||||
|
||||
/** @var int[] */
|
||||
private $currentTime;
|
||||
|
||||
/** @var string[] */
|
||||
private $calculatedTime;
|
||||
|
||||
/** @var int */
|
||||
private $clockSeq = 4066;
|
||||
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Reference in New Issue
Block a user