revert expectation failure message arg back to $message

This commit is contained in:
Fabio Ivona
2022-09-19 11:10:41 +02:00
parent 20e99af194
commit 961e44b5ad
3 changed files with 119 additions and 119 deletions

View File

@ -18,7 +18,7 @@ test('failures', function () use ($obj) {
})->throws(ExpectationFailedException::class);
test('failures with message', function () use ($obj) {
expect($obj)->toHaveProperty(name: 'bar', failureMessage: 'oh no!');
expect($obj)->toHaveProperty(name: 'bar', message: 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('failures with message and Any matcher', function () use ($obj) {