From 400ced5379725a3e774b3564040a74eebb386b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blsk=C3=BD?= Date: Wed, 11 Dec 2024 20:11:51 +0000 Subject: [PATCH] testing tests v8 --- tests/TranslatorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TranslatorTest.php b/tests/TranslatorTest.php index 5d0b397..0659d80 100644 --- a/tests/TranslatorTest.php +++ b/tests/TranslatorTest.php @@ -22,7 +22,7 @@ public function testBasedOnNumber() public function testThxText() { $translator = new Translator(dir: "./tests/locales/", lang: "en_US"); - $this->assertEquals('Thank you John for buying a piece of apple', $translator->locale('testValues', 'thxText', ['username' => 'John', 'product' => 'apple'])); + $this->assertEquals('Thank you John for buying apple', $translator->locale('testValues', 'thxText', ['username' => 'John', 'product' => 'apple'])); } public function testThxTextCounter() @@ -30,6 +30,6 @@ public function testThxTextCounter() $translator = new Translator(dir: "./tests/locales/", lang: "en_US"); $this->assertEquals('Thank you John for buying a piece of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', '_counter' => 1])); $this->assertEquals('Thank you John for buying two of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', '_counter' => 2])); - $this->assertEquals('Thank you John for buying 50 pieces of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', '_counter' => 50])); + $this->assertEquals('Thank you John for buying 50 pieces of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', 'count' => 50 , '_counter' => 50])); } } \ No newline at end of file