mirror of
https://github.com/pestphp/pest.git
synced 2026-12-05 23:32:17 +01:00
Add default failure messages to the remaining string expectations (#1948)
* Add default failure messages to the remaining string expectations * test: update parallel snapshot count for the new default-message cases --------- Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
This commit is contained in:
@@ -17,6 +17,10 @@ test('failures with custom message', function (): void {
|
||||
expect('-')->toBeAlphaNumeric('oh no!');
|
||||
})->throws(ExpectationFailedException::class, 'oh no!');
|
||||
|
||||
test('failures with default message', function (): void {
|
||||
expect('-')->toBeAlphaNumeric();
|
||||
})->throws(ExpectationFailedException::class, 'Failed asserting that - is alphanumeric.');
|
||||
|
||||
test('not failures', function (): void {
|
||||
expect('abc123')->not->toBeAlphaNumeric();
|
||||
})->throws(ExpectationFailedException::class);
|
||||
|
||||
Reference in New Issue
Block a user