mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 02:07:23 +01:00
rename message key to failureMessage
This commit is contained in:
@ -18,7 +18,7 @@ test('failures', function () use ($obj) {
|
||||
})->throws(ExpectationFailedException::class);
|
||||
|
||||
test('failures with message', function () use ($obj) {
|
||||
expect($obj)->toHaveProperty(name: 'bar', message: 'oh no!');
|
||||
expect($obj)->toHaveProperty(name: 'bar', failureMessage: 'oh no!');
|
||||
})->throws(ExpectationFailedException::class, 'oh no!');
|
||||
|
||||
test('not failures', function () use ($obj) {
|
||||
|
||||
Reference in New Issue
Block a user