Clean up code according to PhpStorm inspections report

This commit is contained in:
Ben Ramsey
2019-11-30 13:13:55 -08:00
parent feb3eb50d1
commit 64ba9a2767
38 changed files with 270 additions and 203 deletions
@@ -5,6 +5,8 @@ namespace Ramsey\Uuid\Test\Generator;
use phpmock\phpunit\PHPMock;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Generator\SodiumRandomGenerator;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidFactory;
class SodiumRandomGeneratorTest extends TestCase
{
@@ -33,11 +35,11 @@ class SodiumRandomGeneratorTest extends TestCase
public function testFactoryUsesSodiumRandomGenerator()
{
$this->skipIfLibsodiumExtensionNotLoaded();
$uuidFactory = new \Ramsey\Uuid\UuidFactory();
$uuidFactory = new UuidFactory();
$uuidFactory->setRandomGenerator(new SodiumRandomGenerator());
\Ramsey\Uuid\Uuid::setFactory($uuidFactory);
Uuid::setFactory($uuidFactory);
$uuid = \Ramsey\Uuid\Uuid::uuid4();
$uuid = Uuid::uuid4();
$this->assertInstanceOf(
'Ramsey\Uuid\Generator\SodiumRandomGenerator',