mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 22:33:35 +02:00
chore: refactors exceptions
This commit is contained in:
@@ -22,7 +22,7 @@ test('failures with trailing hyphen', function (): void {
|
||||
|
||||
test('failures with invalid type', function (): void {
|
||||
expect([])->toBeHostname();
|
||||
})->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('failures with custom message', function (): void {
|
||||
expect('-example')->toBeHostname('oh no!');
|
||||
|
||||
Reference in New Issue
Block a user