From 8fe2698c285789164002c7d5482b89162317f115 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 20 Aug 2024 22:57:10 +0100 Subject: [PATCH] chore: fixes test suite --- tests/Features/Expect/toThrow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Features/Expect/toThrow.php b/tests/Features/Expect/toThrow.php index 1a0cb322..c84493a5 100644 --- a/tests/Features/Expect/toThrow.php +++ b/tests/Features/Expect/toThrow.php @@ -51,7 +51,7 @@ test('failures 3', function () { })->toThrow(function (RuntimeException $e) { // }); -})->throws(ExpectationFailedException::class, 'Failed asserting that an object is an instance of class RuntimeException.'); +})->throws(ExpectationFailedException::class, 'Failed asserting that an instance of class Exception is an instance of class RuntimeException.'); test('failures 4', function () { expect(function () {