mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Use a high-strength generator by default, when using RandomLibAdapter
This commit is contained in:
@@ -20,7 +20,7 @@ class RandomLibAdapterTest extends TestCase
|
||||
public function testAdapterWithGeneratorDoesNotCreateGenerator()
|
||||
{
|
||||
$factory = Mockery::mock('overload:RandomLib\Factory');
|
||||
$factory->shouldNotReceive('getMediumStrengthGenerator')
|
||||
$factory->shouldNotReceive('getHighStrengthGenerator')
|
||||
->getMock();
|
||||
|
||||
$generator = $this->getMockBuilder('RandomLib\Generator')
|
||||
@@ -36,7 +36,7 @@ class RandomLibAdapterTest extends TestCase
|
||||
public function testAdapterWithoutGeneratorGreatesGenerator()
|
||||
{
|
||||
$factory = Mockery::mock('overload:RandomLib\Factory');
|
||||
$factory->shouldReceive('getMediumStrengthGenerator')
|
||||
$factory->shouldReceive('getHighStrengthGenerator')
|
||||
->once()
|
||||
->getMock();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user