mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
use expectError instead of expectException (#351)
This commit is contained in:
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||
namespace Ramsey\Uuid\Test\Generator;
|
||||
|
||||
use Exception;
|
||||
use PHPUnit\Framework\Error\Error as PHPUnitError;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Ramsey\Uuid\Converter\NumberConverterInterface;
|
||||
use Ramsey\Uuid\Exception\InvalidArgumentException;
|
||||
@@ -127,7 +126,7 @@ class CombGeneratorTest extends TestCase
|
||||
|
||||
$generator = new CombGenerator($randomGenerator, $converter);
|
||||
|
||||
$this->expectException(PHPUnitError::class);
|
||||
$this->expectError();
|
||||
$generator->generate(7);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user