mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
Prepare tests for running on PHP 8
This commit is contained in:
@@ -26,7 +26,11 @@ class RandomLibAdapterTest extends TestCase
|
||||
$generator = $this->getMockBuilder('RandomLib\Generator')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
new RandomLibAdapter($generator);
|
||||
|
||||
$this->assertInstanceOf(
|
||||
'Ramsey\Uuid\Generator\RandomGeneratorInterface',
|
||||
new RandomLibAdapter($generator)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,7 +44,10 @@ class RandomLibAdapterTest extends TestCase
|
||||
->once()
|
||||
->getMock();
|
||||
|
||||
new RandomLibAdapter();
|
||||
$this->assertInstanceOf(
|
||||
'Ramsey\Uuid\Generator\RandomGeneratorInterface',
|
||||
new RandomLibAdapter()
|
||||
);
|
||||
}
|
||||
|
||||
public function testGenerateUsesGenerator()
|
||||
|
||||
Reference in New Issue
Block a user