mirror of
https://github.com/pestphp/pest.git
synced 2026-09-06 23:03:34 +02:00
chore: refactors exceptions
This commit is contained in:
@@ -7,7 +7,7 @@ use PHPUnit\Framework\ExpectationFailedException;
|
||||
|
||||
test('failures with wrong type', function (): void {
|
||||
expect([])->toBeUuid();
|
||||
})->throws(InvalidExpectationValue::class, 'Invalid expectation value type. Expected [string].');
|
||||
})->throws(InvalidExpectationValue::class, 'This expectation may only be used on a value of type [string].');
|
||||
|
||||
test('pass', function (): void {
|
||||
expect('3cafb226-4326-11ee-a516-846993788c86')->toBeUuid()
|
||||
|
||||
Reference in New Issue
Block a user