use expectError instead of expectException (#351)

This commit is contained in:
Remi Collet
2020-10-29 16:07:00 +01:00
committed by GitHub
parent 65f39c93f4
commit e20165e9dd
+1 -2
View File
@@ -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);
}
}