diff --git a/tests/Features/Expect/toHaveCount.php b/tests/Features/Expect/toHaveCount.php index 726f2c64..153175cf 100644 --- a/tests/Features/Expect/toHaveCount.php +++ b/tests/Features/Expect/toHaveCount.php @@ -1,11 +1,16 @@ toHaveCount(3); }); +test('failures with invalid type', function () { + expect('foo')->toHaveCount(3); +})->throws(InvalidExpectationValue::class, 'Invalid expectation value type. Expected [countable|iterable]'); + test('failures', function () { expect([1, 2, 3])->toHaveCount(4); })->throws(ExpectationFailedException::class);