chore: refactors exceptions

This commit is contained in:
nuno maduro
2026-08-07 15:26:55 +01:00
parent 42d9b777bf
commit 8c554a81e2
54 changed files with 145 additions and 94 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ use PHPUnit\Framework\ExpectationFailedException;
test('failures with wrong type', function (): void {
expect('foo')->toHaveSameSize([1]);
})->throws(InvalidExpectationValue::class, 'Invalid expectation value type. Expected [countable|iterable].');
})->throws(InvalidExpectationValue::class, 'This expectation may only be used on a value of type [countable|iterable].');
test('pass', function (): void {
expect([1, 2, 3])->toHaveSameSize([4, 5, 6]);