mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
29 lines
638 B
PHP
29 lines
638 B
PHP
<?php
|
|
|
|
namespace Rhumsaa\Uuid\Converter\Number;
|
|
|
|
use Rhumsaa\Uuid\TestCase;
|
|
|
|
class DegradedNumberConverterTest extends TestCase
|
|
{
|
|
/**
|
|
* @expectedException Rhumsaa\Uuid\Exception\UnsatisfiedDependencyException
|
|
*/
|
|
public function testConvertingFromHexThrowsException()
|
|
{
|
|
$converter = new DegradedNumberConverter();
|
|
|
|
$converter->fromHex('ffff');
|
|
}
|
|
|
|
/**
|
|
* @expectedException Rhumsaa\Uuid\Exception\UnsatisfiedDependencyException
|
|
*/
|
|
public function testConvertingToHexThrowsException()
|
|
{
|
|
$converter = new DegradedNumberConverter();
|
|
|
|
$converter->toHex(0);
|
|
}
|
|
}
|