Skip to content

Commit

Permalink
Fix PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Mar 16, 2020
1 parent fd5669d commit 706bac0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Rfc4122/VariantTraitTest.php
Expand Up @@ -6,6 +6,7 @@

use Mockery;
use Ramsey\Uuid\Exception\InvalidBytesException;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Rfc4122\VariantTrait;
use Ramsey\Uuid\Test\TestCase;

Expand All @@ -19,6 +20,7 @@ class VariantTraitTest extends TestCase
*/
public function testGetVariantThrowsExceptionForWrongNumberOfBytes(string $bytes): void
{
/** @var Fields $trait */
$trait = Mockery::mock(VariantTrait::class, [
'getBytes' => $bytes,
]);
Expand Down Expand Up @@ -47,6 +49,7 @@ public function testGetVariant(string $uuid, int $expectedVariant): void
{
$bytes = (string) hex2bin(str_replace('-', '', $uuid));

/** @var Fields $trait */
$trait = Mockery::mock(VariantTrait::class, [
'getBytes' => $bytes,
]);
Expand Down

0 comments on commit 706bac0

Please sign in to comment.