From 06450585bf65e978026bda220cdebca3f867fde7 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 1 Nov 2023 09:14:07 +0100 Subject: [PATCH] [Tests] Streamline --- Test/TranslatorTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Test/TranslatorTest.php b/Test/TranslatorTest.php index 18e6690..756228a 100644 --- a/Test/TranslatorTest.php +++ b/Test/TranslatorTest.php @@ -183,9 +183,10 @@ public function testReturnMessageIfExactlyOneStandardRuleIsGiven() */ public function testThrowExceptionIfMatchingMessageCannotBeFound($id, $number) { - $this->expectException(\InvalidArgumentException::class); $translator = $this->getTranslator(); + $this->expectException(\InvalidArgumentException::class); + $translator->trans($id, ['%count%' => $number]); }