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